Script help using item value to make fields required and display
So I have a combo box that has five items listed (text a, text b,.....) and all the values happen to be 50.
I then have a hidden text field become visible and required when text a is selected. Problem is the script I am using is calculating based off the value (30), and sense all are (30), is there a way to use the item list (name) instead? Or a way to make this work?
Custom calculation script for text field
var d=this.getField("combo1").value;
if (d=="30")
{
event.target.display=display.visible;
event.target.required=true;
}
else
{
event.target.display=display.hidden;
event.target.required=false;
}
