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

    Select all hidden fields through a class

    Asked by jacktsai on June 13, 2017 at 05:59 PM


    I'm trying to fade in all of the hidden fields when a condition is met using the following CSS code:

        animation : fade 1s;
        -webkit-animation : fade 1s;

    @keyframes fade {  0% { opacity: 0; } 100% { opacity: 1; }  }

    @-webkit-keyframes fade {  0% { opacity: 0; } 100% { opacity: 1; }  }

    However, because the class is removed as soon as it is shown, it can't select it. I tried to add a little script to add a necessary static class, but after researching, I have discovered that I can't insert custom scripts through the builder.

    Now, I could just select every field by the id and add the animation, but that's a little cumbersome.

    Is there some way to retain the .form-field-hidden class or make it switch to .form-field-show?

  • Profile Image
    JotForm Support

    Answered by Mike on June 13, 2017 at 07:08 PM

    Unfortunately, we do not have access to the classes.

    You may try a .form-line class instead which is applied to every field.

    If you need any further assistance, please let us know.