Add Custom CSS code to the form

  • florence023
    Asked on July 2, 2024 at 5:27 AM

    Adding Custom CSS:

    How can I add custom CSS to my Jotform to change the appearance of specific elements?

    I want to customize the background color, font size, and padding of specific fields. Can someone guide me on how to inject custom CSS into my form and share any best practices?

    Using Conditional Logic:

    What are the best practices for using conditional logic in Jotform to show/hide fields based on user input?

    I need to show or hide fields based on user responses. Can you provide instructions on setting up conditional logic and any tips to ensure it works smoothly?



    Thanks in advance.






    Best Regards,
    florence023
    SpotifyPie

  • Lorenz JotForm Support
    Replied on July 2, 2024 at 5:55 AM

    Hi Florence,

    Thanks for reaching out to Jotform Support. There's a section in the Form Designer panel, that allows you to add Custom CSS code, for additional customization on certain elements. Let met walk you through it:

    1. In the Form Builder, click on the blue Roller Paint icon.

    2. From the Form Designer panel, select the Styles Tab. 

    3. Next, scroll down a bit and add the code inside the Inject Custom CSS area. 

    Add Custom CSS code to the form Image 1 Screenshot 30

    You can also follow this guide on How to Add Custom CSS to the Form. You can identify the element's class or id, using the browser's inspect element. Check this out:

    Add Custom CSS code to the form Image 2 Screenshot 41

    As for your question about conditions, I've moved it to a new thread to assist you better. You can check that out here.

    Reach out to us again if you need any more help.

  • Florence
    Replied on July 2, 2024 at 11:59 PM

    Thank you so much for your quick reply.

 
Your Answer