Can I use conditional logic for when a form is being viewed on mobile

  • sjreynolds
    Asked on November 14, 2015 at 5:14 AM

    Hi, 

     

    I want to display one set of fields on desktop, and one on mobile. Is this possible using the mobile responsive widget? Ie can this detect and return a value if the form is loaded on a mobile screen, and hence hide/show other fields?

  • abajan Jotform Support
    Replied on November 14, 2015 at 4:28 PM

    The Mobile Responsive widget has no such settings but that's what media queries do. The following resources should prove useful:

    How To Use CSS3 Media Queries To Create a Mobile Version of Your Website

    CSS Media Queries for iPads & iPhones

    Logic in Media Queries

    http://youtu.be/fA1NW-T1QXc


    You would either inject the requisite CSS or enter it in the work area of the CSS tab of the Form Designer:

    Can I use conditional logic for when a form is being viewed on mobile Image 1 Screenshot 30

    Can I use conditional logic for when a form is being viewed on mobile Image 2 Screenshot 41


    Should you need assistance with applying media queries to specific elements of your JotForm(s), we'd be happy to provide it.


    Cheers

  • sjreynolds
    Replied on December 3, 2015 at 7:32 AM

    Thanks, 

    Custom css works great. ta

  • victor
    Replied on December 3, 2015 at 9:00 AM

    On behalf of my colleague, you are welcome. If you have any other question or issue, please do not hesitate contacting us. We will be glad to assist.