Changing background color of text box when text box is filled

  • Profile Image
    Wolverin89
    Asked on August 23, 2015 at 06:33 AM

    Hello! Please help me with css options!

    I need same feature:

    Then text field is empty - one color presents as background of field, but then field is filled - other color for backgrounds! this is real?

  • Profile Image
    BJoanna
    Answered on August 23, 2015 at 10:52 AM

    Unfortunately that is not possible to achieve inside JotForm Builder. Such feature does not exist in JotForm Builder.

    Workaround for this is to add external Java Script to manipulate input fields background. In case of adding external Java Script you will need to get full source code of your form and then to add additional script block to that full source and save that as your web page.  That means that your form need to be embedded to some web page. 

    When you get full source code of your form, then you can add  JS function.

    For more information you can read following article:

    http://stackoverflow.com/questions/17218987/changing-background-color-of-text-box-input-not-working-when-empty 

    Example is shown on this link:

    http://jsfiddle.net/2Xgfr/829/ 

    Hope this will help. Let us know if you need further assistance. 

  • Profile Image
    Wolverin89
    Answered on August 23, 2015 at 10:55 AM

    i understand! this is not possible if you not familiar with coding!Thanks you for reply!

  • Profile Image
    Wolverin89
    Answered on August 23, 2015 at 11:03 AM