Can you make a field change colors if it is edited?

  • Profile Image
    Timothy Bischoff
    Asked on January 12, 2018 at 05:35 PM
  • Profile Image
    Jim_R
    Answered on January 12, 2018 at 06:13 PM

    Hey Timothy - I'm afraid there's no way to achieve this without coding it yourself outside JotForm using JavaScript. Our FORM BUILDER only accepts CSS codes and detecting a value of an input field is not doable with CSS.

    If you're interested and you (or your developer) would like to go with this workaround, your workflow would be something like this - Grab the FULL SOURCE CODE of your form, then apply your logic using JS to detect whether an input field has a value or not. Afterwards, use CSS to apply your desired styling.

    Although this is now beyond our scope of support, I went ahead and searched online for some examples should you need them.

    https://www.w3resource.com/javascript/form/non-empty-field.php

    https://www.w3schools.com/js/js_validation.asp