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

    Request: The capability to conditionally change style of fields (with CSS) based on a selection

    Asked by antoniooi on May 16, 2014 at 09:11 AM

    Meanwhile, I also want to have the CSS style change when the text box value is changed. For eample:

    Text box value: Active --> Green color text

    Text box value: Deactivated --> Red color text

    Text box value: Suspended --> Red color text

    Please let me know if this is possible in JotForm, thank you.

  • Profile Image

    Answered by EliezerN on May 16, 2014 at 11:49 AM


    This would require to conditionally change the style of the text, which is not possible iwhith our form builder features. The only way I can think about is to create multiple Text boxes with different styles that will be shown/hidden based on a previous selection using conditional logics as you already did.

    However, I have submitted a request ticket so that our development team can consider the implementation of a function that allows to conditionally apply styles to form fields using CSS codes.

    We cannot promise antything about this implementaion, but in case there are updates on this you will be notified via this thread.


  • Profile Image

    Answered by antoniooi on May 16, 2014 at 09:16 PM

    This is why I want to put my questions under 1 thread as they're related. Multiple repeated textboxes -- I also know how to do it. What I want is conditional chage text data and color. Please see my original post of this thread.

    Anyway, thank you for submitting my request for your developer's consideration.

  • Profile Image

    Answered by antoniooi on May 16, 2014 at 09:32 PM

    But if your developers were to consider this, you can add this idea to your existing conditional calculation feature and make its UI clearly meant to support conditional text insertion as well. After that, try to provide a textarea box that allows advance users to put in custom CSS style so that you do not have to limit this conditional styling feature with limitation such as color picker.

    Hope this make sense to your team. Thanks.

  • Profile Image
    JotForm Support

    Answered by Welvin on May 16, 2014 at 11:54 PM

    Thank you for the additional information. Happy to say that this is already assigned to our developer. However, we are still not able to provide you a timeframe. We will update you here for any progress.