Copy link to clipboard
Copied
I have a field that i want to show a value only if the dropdown list is a certain value. For all of the other then the person must manually type in.
For example, if my drowndown list value is "Monday" then i want the field to display a 1 but if the dropwdown list displays a "Friday" then the field should let the person manually type the number.
Copy link to clipboard
Copied
Do you want to allow the user to replace that value ("1") when Monday is selected?
Copy link to clipboard
Copied
Also, what are the names of the drop-down and text fields?
Copy link to clipboard
Copied
I want the user to being able to manually entry when Friday is selected in the dropdown list. Here's my dropdown list and text friends:
var v=this.getField("Dropdown1").valueAsString
if (v=="Monday") {event.value = 1;}
else if (v=="Tuesday") {event.value = 2;}
else if (v=="Thursday") {event.value = 3;}
else if (v=="Friday") {event.value = custom user entry;}
That last one, i want the user to be able to field with a manual entry instead of displaying a value
Copy link to clipboard
Copied
Just remove that last line, then.
Copy link to clipboard
Copied
Thanks, will try that