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

    Error formatting on small screens blocks certain fields

    Asked by philagov on February 01, 2016 at 07:45 AM

    The CSS on the error messages make certain fields unusable on mobile (e.g., phone number, datetime). You can see this by adding any of these fields to a responsive form and setting them to required. It seems that this is because the inputs in these fields are floated, and the size of the parent element doesn't take them into account.

    I added the following CSS to fix:

    .form-line-error .form-error-message {
        clear: both;
    }

    It might be good to add that to the default CSS, at least for small screens.

    Page URL:
    https://form.jotform.com/60311098016951

    Screenshot
    style Mobile validation
  • Profile Image
    JotForm Support

    Answered by beril on February 01, 2016 at 11:27 AM

    When I've tested the your form with my phone I am able to reproduce same issue that you are having.

    I am not sure how to solve your issue with different way. However, the CSS code that you've added resolves your issue perfectly.

     

    .form-line-error .form-error-message {
        clear: both;
    }