How to create dynamic link on form?

  • Schwob
    Asked on September 5, 2016 at 9:18 AM

    injected the follwong code before my link in the source-code of my form:

    ...


    this is a link

    ...

    Thsi works so far, but changing the value in the input-box does not Change the URL, it only presents the first, prepopulated value für Input_9.

    I tried to make a function of the script, using onchange-Event in order to actualize the values, but then the whole form won´t work. Is there a specfic Position where i have to put my code, or any hint for me to get this work?

    Maybe someone else has already a solution to create dynamic links with variable values (without usage of submit).

  • Nik_C
    Replied on September 5, 2016 at 10:12 AM

    I'm sorry, but can you give us more details about what are you trying to achieve?

    Possibly the form ID so we can have a clear picture of the whole idea?

    We'll wait for your response.

    Thank you!

  • Schwob
    Replied on September 5, 2016 at 10:19 AM

    Hi Nik!

    Sorry:

    https://form.jotformeu.com/62481739800358

    We have several Layout-Files, for each Book-Size one (Link to ZIP-File)

    We want to avoid the complicated Workaround with Conditions to supply our customer with the correct File (coressponding to the calculated Value for Bookthickness).

    The Plan is to create a Download-Link like this: http://schwob-digitaldruck.de/files/Layout_XXmm, where XX ist the value of the calculated block thickness. This would be much easier for implementing as using Conditions, because we have around 30 different sizes. (Later i Need a similar function also for replacing Images dynamically in a form, if this will work with scripting.)

    Holger

  • Nik_C
    Replied on September 5, 2016 at 10:59 AM

    You can do that by using Form Calculations, for my tests I used this field: Buchblockdicke (mm), for that XX size,but this example will apply to any field.

    1. Place one form calculation field on your form and these are values in it:

    How to create dynamic link on form? Image 1 Screenshot 30

    Yellow field is your Buchblockdicke (mm) field.

    2. And here is how it looks like on form:

    How to create dynamic link on form? Image 2 Screenshot 41

    I'm thinking that this could be a workable solution for you since it will create different link for each size every time, as you needed, here is clone of your form so you can check:

    https://form.jotform.com/62484885137972

    You can make that field hidden or send to your clients.

    If you need further help please let us know.

    Thank you!

  • Nik_C
    Replied on September 5, 2016 at 10:59 AM

    You can do that by using Form Calculations, for my tests I used this field: Buchblockdicke (mm), for that XX size,but this example will apply to any field.

    1. Place one form calculation field on your form and these are values in it:

    How to create dynamic link on form? Image 1 Screenshot 30

    Yellow field is your Buchblockdicke (mm) field.

    2. And here is how it looks like on form:

    How to create dynamic link on form? Image 2 Screenshot 41

    I'm thinking that this could be a workable solution for you since it will create different link for each size every time, as you needed, here is clone of your form so you can check:

    https://form.jotform.com/62484885137972

    You can make that field hidden or send to your clients.

    If you need further help please let us know.

    Thank you!