How do I make my form mobile friendly?

  • marystrachan
    Asked on July 26, 2019 at 11:09 AM

    Hi,

    I've used Iframe to embed my form onto my site and just found out that it is not optimized for mobile use.  I've attached two pictures for you to see.  I've searched the forum and see that I many need to use some CSS and hope you could provide that for me.  the first photo is of the form with me holding the phone horizontally, and the second is me holding the phone normally.  Thanks.  Mary

    1564153693IMG 0360 Screenshot 101564153716IMG 0359 Screenshot 21

  • KrisLei Jotform Support
    Replied on July 26, 2019 at 11:36 AM

    Hello,

    Have you tried using the Mobile Responsive Widget? Usually, this widget helps you to improve and optimize your form for mobile devices. You could also provide the link of your form for us to replicate the issue on our end and verify the necessary CSS codes if needed.

    Let us know if you need further assistance.


  • marystrachan
    Replied on July 26, 2019 at 11:47 AM

    Hi.  So I added that widget, but it looks like some of my form is still cut off.  My numbers go up to 10 and there's words missing on the right had side that tell them what 10 represents (like under the 1)

    1564155982Screen Shot 2019 07 26 at 11 Screenshot 10


  • BJoanna
    Replied on July 26, 2019 at 1:13 PM

    I assume that the issue is related to your The Assessment form. Is the issue only related to the Scale Rating field? 

    I was able to reduce the size of the field with CSS on my cloned form, but I also had to remove the Lowest and Highest Rating text. 

    1564160829scale Screenshot 10

    The following CSS code has to be added to the form:

    @media screen and (max-width: 480px) {

    .form-scale-table th, .form-scale-table td {

        padding: 9px 0px;

    }

    }

    How to Inject Custom CSS Codes

    1564160967mobile Screenshot 21

    If you want to keep the Lowest and Highest Rating text, I can only suggest you to reduce the number of rating options. 

    Another option is to use the Star Rating field. 

  • marystrachan
    Replied on July 26, 2019 at 4:43 PM
    Yes, that's the right form, but I have others that I use from 1 -10 as
    well.  I'll add the code and see what I think.  Would the words not
    being there only be on the mobile version or on the desktop too?
    JotForm wrote on 2019-07-26 1:13 PM:
    ...
  • VincentJay
    Replied on July 26, 2019 at 6:32 PM

    It will affect the desktop version too if you remove the Lowest Rating Text and Highest Rating Text. 

    Is the issue resolved? If you do not want to remove the Rating Text, please try adding this custom CSS code:

    @media screen and (max-width: 480px), screen and (max-device-width: 767px) and (orientation: portrait), screen and (max-device-width: 415px) and (orientation: landscape)

    table td + td {

    padding-left: 0% !important;

    }

    @media screen and (max-width: 480px)

    .form-scale-table th, .form-scale-table td {

    padding: 0px;

    }

    To add custom CSS code to your form, please follow this guide: https://www.jotform.com/help/117-How-to-Inject-Custom-CSS-Codes

    Also, please share the website where you embedded the form so we can check it further and what mobile device you're using so we can also test it on our end.

    We'll wait for your reply. 

  • marystrachan
    Replied on July 26, 2019 at 7:43 PM
    When I added the code, the rating words still seem to show up on the
    preview phone version.  I'll double check it on a real phone but I think
    it is resolved.
    JotForm wrote on 2019-07-26 6:32 PM:
    ...
  • knolltraining
    Replied on July 30, 2019 at 2:26 PM

    I am having the same problem with a form that has quite a few scale rating questions being asked. Can you please let me how I can fix this problem? I tried the code you posted above but it didn't appear to work on my form.

    https://form.jotform.com/92045799086167

  • VincentJay
    Replied on July 30, 2019 at 2:58 PM

    To avoid confusion, I moved your question to a new thread. Please check my reply on this thread: https://www.jotform.com/answers/1909394

    Thank you.