Solved! Go to Solution.
Rick Siegfried we're using a pURL (with Munchkin disabled) for each partner to access the referral form LP and we set Referrer ID and Referrer:Email Address hidden field values using tokens. However, after the lead is submitted, the aliId changes to that of the newly created lead, so a follow on page or subsequent form submission (if Form is set to stay on LP) the Referrer ID and Referrer:Email Address token will no longer reference the referrer's lead record and will instead reference the new lead's record. Is there a way to clear off the aliId or some other setting that won't reference the referred lead record using the Stay on Page option?
Clearing the aliId is simple, but even better, just intercept the onSuccess and truly stay on the page:
form.onSuccess(function(vals,tyURL){
return false;
});