• Resolved robinfloyd90

    (@robinfloyd90)


    Hi,

    Urgent,

    How can i auto populate a field with the referring page url or name?

    Or if not possible, how do i see the referring URL in the submissions
    section?

Viewing 1 replies (of 1 total)
  • Plugin Contributor Form Maker Support

    (@formmakersupport)

    Hi @robinfloyd90!

    Thanks for posting your request!

    Please firstly add a Hidden Field to your form, and set its name to e.g. Referrer (make sure to not use spaces or special characters in its name).

    Afterwards go to Form Options of your form, navigate to Javascript tab and add the following script in before_submit() function:

    var submitUrl = window.location.href;
    jQuery('#hidden_field_id').val(submitUrl);

    #hidden_field_id should be the exact ID of your hidden field, #wdform_15_element26 for example. Let us know if this helps.

    Cheers!

Viewing 1 replies (of 1 total)
  • The topic ‘Referring Page’ is closed to new replies.