What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Can I redirect to a specific page based on whether or not they are using a mobile phone?

    Asked by richsmithphoto on December 14, 2015 at 08:24 PM

    I'd like to do this:

    Once they fill out the contact form, if they're using a mobile phone, I redirect to a page. If they're using a computer, redirect to a different page.

    Is this possible?

    mobile phone redirect to mobile thank you page conditions
  • Profile Image
    JotForm Support

    Answered by Charlie on December 15, 2015 at 12:40 AM

    This should be possible using by following the steps below:

    1. First, we will add the "Hidden Field" widget, this allows you to catch the browser information on your user. You can check this guide on how to add it: http://www.jotform.com/help/234-How-to-Catch-User-s-Browser-Info 

     

    2. Now the format of the browser info that is fetched will be like this:

     

    3. We will then use conditional logic to redirect the user depending on the "Device" or "OS". So far, here are the following values I get when I tested it on different devices:

    Submitted on Mac OS X emulator

    OS: MacOS

    Device: Desktop

     

    Submitted on iPhone emulator

    OS: iOS

    Device iPhone

     

    Submitted on Windows 10 desktop computer

    OS: Windows

    Device Desktop

     

    Submitted on Windows phone 8.1

    OS: Android

    Device: Mobile

     

    I believe the most credible would be the OS as there are specific OS for mobile devices.

     

    4. We will then use conditional logic to redirect or display specific thank you messages after the form is submitted. In your condition wizard, choose "CHANGE THANK YOU PAGE"

     

    I will then setup a condition to check if any of the keywords in the browser info matches of that on a mobile. Below is a sample to where the OS has a value of "Android".

    Condition:

    IF "Hidden Field" CONTAINS "Android THEN DO...

    You have two options, you can change the thank you message page OR you can redirect to another URL.

     

     

    I hope that helps.

  • Profile Image

    Answered by richsmithphoto on December 15, 2015 at 08:25 AM

    This is incredibly helpful. Thank you so much for taking time out to answer this for me!

  • Profile Image
    JotForm Support

    Answered by Jan on December 15, 2015 at 09:47 AM

    On behalf of Charlie, you're welcome. Let us know if you need any help. Thank you.