Is there a way to change the form's recipient using URL parameters?

  • Profile Image
    Asked on July 24, 2015 at 09:48 AM

    I would like to have one form that sends out the submissions to different e-mail addresses based on an URL parameter. I know about the Conditions feature, but this would require me to add an additional field to my form, such as "pick a recipient" which I would like to avoid. Is there a way to do this?


    Thanks in advance for your help!

  • Profile Image
    Answered on July 24, 2015 at 12:27 PM

    If the URL parameter is pulled from the Jotform URL, it can be possible by adding a hidden textbox field on the form.

    For instance, if the Jotform URL is having an additional parameter as below

    you can have the parameter value in the hidden textbox field which is placed on the form by placing a simple PHP command.

    While previewing the form with added parameter in the URL, the form should display the value as below :

    You may and a condition can be set based on this textbox field to send the email.

    Please see the demo form below. You may also clone it to your account to see how it works.

    Hope this information helps. Let us know if you need any further assistance. Thanks!

  • Profile Image
    Answered on July 27, 2015 at 01:02 PM


    Thanks for your assistance,

    I input the code as instructed but the form does not auto fill with the parameter? any idea why?


  • Profile Image
    Answered on July 27, 2015 at 01:30 PM

    Generally, the field names are assigned automatically by label name of the field. However, this can be altered from the field properties. Since the label is set to test on your Jotform, the field ID was assigned as test.

    The URL should be working fine if the parameter is changed to test without making any changes to your Jotform now. York

    But the field is assigned to call a different variable 'city' and in the URL parameter. Please replace the field name from test to city so that the URL should be working fine.

    Once this change is made on your Jotform, you should be able to access with the parameter city.

    Hope this information helps.