Copy link to clipboard
Copied
I am creating a form with multiple text fields. Once a field is filled in, I would like the text field to change colors. I am having no luck getting that to happen. I've tried multiple ways. Any ideas on how to accomplish this? Thanks!
As the custom calculation script of your field enter the following:
event.target.fillColor = (event.value==event.target.defaultValue) ? color.transparent : color.blue;
You didn't specify which colors you want to use, so I assumed transparent for the empty fields and blue for the filled-in ones...
Copy link to clipboard
Copied
As the custom calculation script of your field enter the following:
event.target.fillColor = (event.value==event.target.defaultValue) ? color.transparent : color.blue;
You didn't specify which colors you want to use, so I assumed transparent for the empty fields and blue for the filled-in ones...
Copy link to clipboard
Copied
You can also use the Validation event (with the same code) if your fields already have a calculated value.
Copy link to clipboard
Copied
Thanks! They are currently clear and would want them to be blue. The fields would be a custom text field. That's the problem I am running into. I've tried different custom scripts but couldn't seem to get it correct. Coding isn't my thing 🙂