How to set a condition that will show/attach appropriate link to file?

  • synterra
    Asked on July 18, 2017 at 1:23 PM

    Hi.

    I have a checkbox question which asks you to choose which pdf article you would like to have emailed to you. You can choose more than one article.

    I have set it up so  that if you choose any ONE of the pdfs, an email will come to  you with that pdf attached. The problem is that if someone chooses MORE THAN ONE of the options, it stops working. I get, logically, why this happens. But I cannot determine if there is a work around for it.

    I wish I could choose the state "includes" as opposed to "is equal to" but that isn't an option. 

    I do not care if the user gets a separate email for each article they choose, I just want them to be able to choose more than one.

    Anyone have any ideas?

    In a related but different problem, even if I just select one pdf I am not receiving the email. It worked a couple weeks ago when I first built the form out, but now it is not sending at all. 

  • Nik_C
    Replied on July 18, 2017 at 2:59 PM

    I thought about this issue and there might be a workaround.

    What I have in mind is to split your check boxes in separate fields:

    How to set a condition that will show/attach appropriate link to file? Image 1 Screenshot 50

    And assign calculation values to each checkbox, which will actually be the link to your file, which you can upload somewhere:

    How to set a condition that will show/attach appropriate link to file? Image 2 Screenshot 61

    Then you can add a Text field that will represent the link and be shown if the checkbox is clicked:

    How to set a condition that will show/attach appropriate link to file? Image 3 Screenshot 72

    And conditions that will reveal appropriate fields:

    How to set a condition that will show/attach appropriate link to file? Image 4 Screenshot 83

    I did for three links in this test form: https://form.jotformpro.com/71985157259975

    Please check and let us know if that could work for you.

    Thank you!

  • synterra
    Replied on July 19, 2017 at 3:41 PM

    Wow!! That is such a great solution!! I would have NEVER thought of that! I like that much better than sending emails to the user anyway. Thanks so much!

    The only thing I don't get is why I have to put the link in the Calculation Values box for each option...couldn't it just be achieved from Show/Hide? Check out my form again and see how I've done it so far...

  • Chriistian Jotform Support
    Replied on July 19, 2017 at 4:45 PM

    My colleague has added the link to the Calculation Values so that the download URL will show up on the {input10} {input11} {input12} variable on the text field.

    How to set a condition that will show/attach appropriate link to file? Image 1 Screenshot 30

    You can also directly add the link to the text field instead of adding it to the Calculation Values of the multiple choice field as what you have done on your form. I checked your form and I was able to see that you have now set this up properly.

    How to set a condition that will show/attach appropriate link to file? Image 2 Screenshot 41

    Do let us know if you need further assistance.

  • synterra
    Replied on July 19, 2017 at 5:00 PM

    This is so wonderful. Thank you guys so much!!

  • synterra
    Replied on July 19, 2017 at 5:05 PM

    Uh-oh. My colleague just reminded me of a big problem - if we put the links in the form like that, then there's no guarantee the user will submit the form at all...and the whole point is to offer these papers as "gated content" so our client can generate some sales leads from the people that complete it...

    I really liked this idea, but I didn't think it all the way through to that point...

    Any other thoughts? Any way to require the user to submit the form?

  • Chriistian Jotform Support
    Replied on July 19, 2017 at 5:35 PM

    If that will be the case, maybe you can add the link on the Thank You page of your form so the user will only be able to download the files upon submission. I will create a sample form for you. Please give me some time to create the sample form. Will get back to you once I have created the sample form.

  • Chriistian Jotform Support
    Replied on July 19, 2017 at 6:17 PM

    To show the link on your Thank You page, just follow the instructions below.

    1. Remove the Text field that shows/hides upon selecting the checkbox.

    How to set a condition that will show/attach appropriate link to file? Image 1 Screenshot 80

    2. Also, remove the Condition setup for the Text fields removed.

    How to set a condition that will show/attach appropriate link to file? Image 2 Screenshot 91

    3. Setup the links to the corresponding checkbox's Calculation Values settings.

    How to set a condition that will show/attach appropriate link to file? Image 3 Screenshot 102

    4. Add Form Calculation widget that will hold the value for the links.

    How to set a condition that will show/attach appropriate link to file? Image 4 Screenshot 113

    5. Setup the corresponding Form Calculation widget.

    How to set a condition that will show/attach appropriate link to file? Image 5 Screenshot 124

    6. Add the Calculation widget fields to your Thank You page.

    How to set a condition that will show/attach appropriate link to file? Image 6 Screenshot 135

    Once you have set this up properly, the links should be displayed on your Thank You page.

    How to set a condition that will show/attach appropriate link to file? Image 7 Screenshot 146

    You can check this sample cloned form that I have created: https://form.jotformpro.com/71997227889985.

  • synterra
    Replied on July 27, 2017 at 9:10 AM

    Sorry - I haven't had a chance to do this yet, but that looks like it will work perfectly. Thank you guys so much for your help!!

  • synterra
    Replied on July 27, 2017 at 5:20 PM

    OK - I've got it all set up and it is working as you said it would. The only problem is the link not being clickable, but the user having to copy and paste it instead. Any work-arounds for that? Sorry I keep coming back for more help!

  • David JotForm Support Manager
    Replied on July 27, 2017 at 6:30 PM

    Simply select each variable, and copy it, then click on the hyperlink icon, and paste it there, example:

    How to set a condition that will show/attach appropriate link to file? Image 1 Screenshot 20

  • synterra
    Replied on August 1, 2017 at 10:24 AM

    You're the best - all is working great! Can't thank you enough!