Generate a URL string that contains square brackets.

  • Profile Image
    groundtruth
    Asked on January 24, 2018 at 02:34 AM

    I'm trying to generate a URL string that contains square brackets, but the form removes them after I hit Save.



    This is a re-post of a comment on How to Manipulate Text (String) with Conditions and Calculation

  • Profile Image
    ashwin_d
    Answered on January 24, 2018 at 08:10 AM

    I am not sure if I have understood your question correctly. Do you mean to say that you are trying to create link by add text in form calculation widget?

    Please note that after adding the text in form calculation widget, you need to ensure to click on the text and ensure it is in light brown background. Please check the screenshot below:

    1516799368text.gif


    I would suggest you to please explain your issue a bit more in detail and we will surely help you. You may also like to share a screenshot of the issue and we will take a look. The following guide should help you how to upload image in forum post:   https://www.jotform.com/help/438-How-to-Post-Screenshots-to-Our-Support-Forum

    We will wait for your response.

  • Profile Image
    groundtruth
    Answered on January 24, 2018 at 11:06 PM

    I'm trying to populate a field with a string in the form of:

    https://mydomain.com/#/x[144.99223]/y[-37.79490]/

    I type in the string that I need:

    15168527852018-01-25_14-51-50.png

    Then I pick the output field or hit Save, and it screws up my string. Note the square brackets are now missing:

    15168528732018-01-25_14-52-39.png

    The URL I'm trying to construct needs the square brackets, but Jotform doesn't seem to support it.

  • Profile Image
    ashwin_d
    Answered on January 25, 2018 at 01:42 AM

    Please note that you can use URL encoded value in form calculation widget and when you copy paste the encoded value in browser, it will work correctly. Here is the encoded value of the text:

    https://mydomain.com/#/x[144.99223]/y[-37.79490]/

    /#/x[

    %2F%23%2Fx%5B

    144.99223

    ]/y[

    %5D%2Fy%5B

    -37.79490

    ]/

    %5D%2F

    The text with yellow background is the encoded text of the text in bold. Do try it out and get back to us if you have any questions.