How can i create form for mobile devices?

  • beenahemkar
    Asked on May 11, 2015 at 2:23 AM

    hi, 

    I am creating a website with desktop, mobile and tablet version. I've cloned my desktop version form to edit and create a form for the phone version but the width of the form doesn't seem to change on the device. however in preview mode on the jotform.com, it looks perfect. Please help.

    Jotform Thread 567466 Screenshot
  • Ecem JotForm Designer
    Replied on May 11, 2015 at 4:35 AM

    Hi,

    I make these steps for your mobile form;


    1. At the toolbar, click on Preferences button.
    2. Click on the General Settings tab
    3. Set Responsive Form option to Yes. 

    How can i create form for mobile devices? Image 1 Screenshot 20

     

    But when i check, your form is responsive but not the other elements on your web.

    Can you please check it and let us know if the problem remains.

     

    Best Regards.

    Ecem

  • beenahemkar
    Replied on May 13, 2015 at 2:15 AM

    Hi, thanks but this hasn't worked. My form is already set to Yes for responsive form.

  • Sammy
    Replied on May 13, 2015 at 6:23 AM

    I have checked you form and it seems you have already specified the width of the site's elements to be fixed at 380px, this will work fine for devices of this screen width, however for wider devices the form will expand according to the screen size but the other elements will not expand resulting the appearance similar to your screenshot.

    To resolve this issue, you can also specify the width of the JotForm to be 380px, under Preference->Form Styles

    How can i create form for mobile devices? Image 1 Screenshot 20

    A better approach will be to design the elements to be responsive using the width as % instead of specifying the pixel size px.

    This will scale better to wider screen portable devices

     

  • Ashwin JotForm Support
    Replied on May 13, 2015 at 6:35 AM

    Hello beenahemkar,

    Upon checking your web page where you have embedded your form, I found that you have used script embed code.

    Please be noted that for your form to work correctly in mobile devices, we recommend to embed your form using its iFrame embed code. The following guide should help you:  http://www.jotform.com/help/148-Getting-the-Form-iFrame-Code 

    Do try it out and see if that solves your problem.

    Thank you!