How do I display the current URL

In order to save and store the current URL with your submission you will need a simple custom script. Please try:

  • add a hidden field in your form;
  • add the following script in the Default value property of your field:
    //<code>
    $url = RSFormProHelper::getURL();
    return $url;
    //</code>
    

This will allow you to display the URL in the thank you message or send it in the component generated emails simply by using the placeholder of the hidden field.


37 persons found this article helpful.


Was this article helpful?

Yes No
Sorry about that

You Should Also Read

How do I pass a parameter through the URL and how can I catch it ? HOT

Mapping submission info to other database tables HOT

Recording the referer page HOT