How will I be able to set metadata (My business specific information) about user before submitting the referral form?

In your custom JavaScript file (the one you can specify on "Edit UI" page of your campaign setup flow), you can redefine the function NextBee.Referral.submitReferral widget with your custom implementation that sets the metadata information about user, and at the end of your processing invoke the function submitReferral.

Here is one sample implementation for such function that sets the user Meta data information before submitting the form to server. NextBee.Referral.submitWidgetForm = function () { if(!parent.validateUserInformation()) return; if(!parent.validateEmailIds()) return; parent.document.getElementById(“metadata”).value = “MY USER'S METADATA”; parent.submitReferral(); }

Looking for a Referral or a Loyalty Program?
NextBee has robust and feature rich platform
We guarantee your ROI
No long term contract to sign
Hassle free zero cost IT setup

Related Topics