- SCARHSAsked on February 14, 2017 at 06:23 PM
Would there be anyway to detect when the form is loaded on mobile so I could make a conditional logic out of it
IE.: showing a picture when A)user is on mobile B)User has answered a specific question on the form.
Let me know thank you.
- JotForm SupportEltonCrisAnswered on February 15, 2017 at 12:26 AM
I could not find any workaround to achieve this in the form builder alone.
But you can achieve this when you use your form source code.
And inject custom script in the source code that would fill a value in a specific field when the form is opened on mobile. And then you can use the filled value as the trigger point for your mobile condition.
You can find sample script from this article http://stackoverflow.com/questions/11381673/detecting-a-mobile-browser.
If you need further help on this, let us know.
- SCARHSAnswered on February 15, 2017 at 09:08 PM
How do I inject code into my form? Would I need my own website with iframe to do that?
- JotForm SupportChriistianAnswered on February 16, 2017 at 02:34 AM
Would I need my own website with iframe to do that?
You need to host your form's code to your own server to display the form with injected code. We recommend you to look for freelancers that can help you set this up. You can hire either in http://www.upwork.com/ or http://www.freelancer.com/.
If you need further assistance, please let us know.
- SCARHSAnswered on February 16, 2017 at 08:33 AM
Thank you support, that answered my questions.