Prepopulation URL Issues From Another Form's Submission Email

  • Profile Image
    acpa
    Asked on August 14, 2015 at 02:39 PM

    Hello,

    I have a form that uses a dropdown to select a position to nominate someone for.

    Upon submission of that form, the nominee receives a notification that they have been nominated. In that notification email, I have embedded a link to the application form that used the prepopulation URL:

    ?fullName={fullName}&title={title11}&college={college12}&phoneNumber={phoneNumber14}&positionFor={positionFor}&email25={email13}

    Each form has the same list for positionFor, but what happens is spaces are removed when the URL is generate, making the prepopulated choice not match what is in the application form. Here is an example of what is generated:

    ?fullName=JonSmith%20Jr.&title=Nominee%20OMegas&college=ACPA&phoneNumber=443.623.3016&positionFor=AssemblyCoordinator%20for%20InternationalDivisions&email25=jong@email.com

    You'll notice the spaces missing, as it should read "Assembly Coordinator for International Divisions" or "Assembly%20Coordinator%20for%20International%20Divisions". The fullName= and title= prepopulations also dropped spaces, and I am assuming the college= would have as well if I had entered multiple words.

    Is there a way to preserve the spacing to avoid the bad prepopulation data?

    Thanks.

     

  • Profile Image
    Boris
    Answered on August 14, 2015 at 05:11 PM

    Can you please try using the URLENCODE: attribute to save the spaces from being converted, which you would use like this:

    positionFor={URLENCODE:positionFor}

    You can take a look at this guide for more details on the URLENCODE attribute: How to Pass Values to the Text Area of a Form via URL encoding

    Please let us know how it goes. Thank you.