Date and drop down field border color change
Hi All
I have a form that has many fields. I have a line in the Custom Format Script that changes the border color once the user clicks in the field and it then changes color once the user presses enter.
// Custom Format script for text field labeling
var t1 = "Name:"
if (!event.value)
{
event.value = t1;
event.target.display = display.noPrint;
event.target.strokeColor = color.yellow;
}
else
{
event.value = t1 + event.value;
event.target.display = display.visible;
event.target.strokeColor = color.green;
}
This works well with the text fields, however for the drop-down it only has the green color and for the date I don't know where I could put such a script.
Kindly advise as well as if there is an option on how I can make the color setting a global script such as a document level.
Thank you
J
