Can I get the "referrer" if a form is used in a jotform app?

  • CWFSignup
    Asked on May 25, 2023 at 6:45 PM

    It appears my conditions to test the referrer (using the get referrer widget on my form) are not working when the form is launch from one of my jotform apps. Is there a test I can use to tell if the form is being accessed from one of my jotform apps?

    Thank you,

    Robin Schmidt

  • Sweta JotForm Support
    Replied on May 25, 2023 at 9:57 PM

    Hi CWFSignup,

    Thanks for reaching out to Jotform Support. You can add the Get Form Page URL widget on your form, it will capture the app URL.

    Can I get the referrer if a form is used in a jotform app? Image 1 Screenshot 20

    Give it a try and let us know how it goes.


  • CWFSignup
    Replied on May 28, 2023 at 1:07 PM

    Thank you. I added the widget to get the URL. I set up the condition below and try to run the form from my app. I also tried inserting the space as "", but neither of them have any effect. The value of of event details does not change to "" or blank. Can you advise?

    Can I get the referrer if a form is used in a jotform app? Image 1 Screenshot 20

  • CWFSignup
    Replied on May 28, 2023 at 1:13 PM

    Also here is the app I use to call the form:


    https://www.jotform.com/app/222906593922159


    Thanks for advisement,

    Robin

  • Mohammad_D
    Replied on May 28, 2023 at 2:52 PM

    Hi Robin,

    Thanks for getting back to us. I didn’t fully understand the issue.
    I cloned your form along with the app and tested it to see if I could replicate the issue, but everything was working properly. Check out the screencast below to see my results:

    Can I get the referrer if a form is used in a jotform app? Image 1 Screenshot 20

    Can you explain a bit more about the issue so I can get a better idea of what's happening?
    Once we have a better idea of what’s going on, we’ll be able to come up with a solution.

  • CWFSignup
    Replied on May 28, 2023 at 3:58 PM

    It does not appear to be working properly in your example. The conditions were set to clear the fields "event details" and "payment type" if the url contains "www.jotform.com". Those fields do not appear to be cleared in your example. I need them to be cleared so the field's default values do not populate these fields in my scenario. I only want the default values to populate the fields in the scenario where the form is being field from our website (not using jotform app). Thanks again, please advise.

    RobinCan I get the referrer if a form is used in a jotform app? Image 1 Screenshot 20

  • CWFSignup
    Replied on May 28, 2023 at 4:12 PM

    In other word when this page appears, those fields should be cleared, forcing the user to re-enter options from the dropdowns. please see the conditions for pag url. Here is how it comes up now, with fields not cleared:


    Can I get the referrer if a form is used in a jotform app? Image 1 Screenshot 20

  • Justin_E Jotform Support
    Replied on May 28, 2023 at 4:25 PM

    Hi Robin,

    Thanks for getting back to us. After checking on your form, I have cloned your form to try and replicate the issue. I was able to replicate the issue and was able to see what the issue is. To fix this, you can add a "space" value on the option of your dropdown. For example:

    Can I get the referrer if a form is used in a jotform app? Image 1 Screenshot 30

    As you can see on the options, I have added a blank space and not left it blank. This way the conditional logic can read it as a value. Now the condition should work and this will be the result:Can I get the referrer if a form is used in a jotform app? Image 2 Screenshot 41

    That's it! Give it a try and let us know how it goes.

  • CWFSignup
    Replied on May 28, 2023 at 5:32 PM

    yes this worked! Thank you!


    Robin