How to change the input text color?

  • coachconsulthome
    Demandé le 20 septembre 2023 à 10:13

    Bonjour, j'aurai besoin de savoir comment passer la couleur du texte lors du remplissage de ce dernier. Mon formulaire est blanc et son fond est noir. cependant lorsque l'on le remplis le texte que l'on tape est blanc et donc illisible.

    Cordialement,

    Jotform Thread 5553847 Screenshot
  • Gilbert Jotform Support
    Répondu le 20 septembre 2023 à 13:50

    Hi coachconsulthome,

    Thanks for using Jotform. Unfortunately, our French Support agents are busy helping other Jotform users at the moment. I'll try to help you in English using Google Translate, but you can reply in whichever language you feel comfortable using. Or, if you'd rather have support in French, let us know and we can have them do that. But, keep in mind that you'd have to wait until they're available again.

    Now, let me help you with your question. I checked your form but the input text there is already set to black:

    How to change the input text color? Image 1 Screenshot 50

    But here's the CSS code that you can add to your form to set the input text color to black. You can change the color code value if you want to set it to a different color.

    input {
     color: #000 !important;
    }


    Here's how you can add the CSS code to your form:

    1. In Form Builder, open the Form Designer panel by clicking on the paint roller icon in the upper-right corner.

    How to change the input text color? Image 2 Screenshot 61

    2. In the Form Designer panel, go to the Styles tab

    How to change the input text color? Image 3 Screenshot 72

    3. Scroll down to the Inject Custom CSS section and add the CSS code in the textarea.

    4. Once you’re done, select Save at the bottom.

    How to change the input text color? Image 4 Screenshot 83

    Let us know if you need any other help.