How can I have a link in a text element that contains an ampersand?

  • ecm1987
    Asked on January 23, 2017 at 7:04 AM

    I have an URL that ends with "&lang=e" .... in the preview of the form, the &lang part turns into some kind of bizarre character, looks a bit like an open parentheses ...

  • omerorkun JotForm Data Scientist
    Replied on January 23, 2017 at 8:32 AM

    Hi, on

    Your issue is caused by HTML encoding. On this page you can see that ⟨ refers to 〈  on HTML. That is why the link you provided is distorted on the HTML field. Please see what you should do to resolve this:

    1. Open your HTML editor and click anywhere on your link. When the cursor is on your link click here on the editor:

    How can I have a link in a text element that contains an ampersand? Image 1 Screenshot 30

    2. This will trigger a small pop-up where the URL and text to display of your link is shown:

    How can I have a link in a text element that contains an ampersand? Image 2 Screenshot 41

    Please change both URL and Text to display entries with the following link which is the correct link you'd like to display on your form:

    http://www.ecm.qc.ca/ecm.php?page=generation&lang=e

    This should resolve the link being distorted on your form. I hope this helps. Please let us know if the issue still persists though. 

    Do contact us again if you need any further assistance.