Pass values to url in autoresponder no good as url encoding reference %20 not used for spaces

  • Profile Image
    markashton
    Asked on January 10, 2012 at 06:18 AM

    Hi,

    I'm passing field values into a url string in an autoresponder (this can then be clicked to prefill a subsequent form).

    However, I note that the resulting url string is usually broken, especiialy if two words aare used e.g.

    How did you hear about us = Cold Call

    That gap in between Cold Call causes a break in the url.

    The problem .....

    URLs can only be sent over the Internet using the ASCII character-set.
    Since URLs often contain characters outside the ASCII set, the URL has to be converted into a valid ASCII format.
    URL encoding replaces unsafe ASCII characters with a "%" followed by two hexadecimal digits.

    Can you advise me on whether i can get this to work without having to put all my dropdown options as ....

    ColdCall
    WordOfMouth

    many thanks

    Regards Mark 

  • Profile Image
    abajan
    Answered on January 10, 2012 at 01:54 PM

    About a year ago, I posted a query about a similar problem I had had while trying to pass strings containing spaces, in URLs. The trick is to prepend the variable in the problem tag with URLENCODE:. So, substituting the tag {URLENCODE:howDid} for {howDid} should solve the problem in the form in question (knock wood). If it doesn't, do let us know.

  • Profile Image
    markashton
    Answered on January 10, 2012 at 02:26 PM

    Genius ;)

  • Profile Image
    abajan
    Answered on January 10, 2012 at 03:05 PM

    Thanks but much as I would like to take the credit for this solution, it really belongs to our Lead Developer Serkan.

    Glad it worked.

    (Incidentally, you might also find this thread to be of interest.)

     

    Cheers :)