Skip to main content
Participant
Mar 24, 2025 10:22 PM UTC
Question

Help: Conditional Formatting and manual typing

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.

5 replies

try67
Community Expert
Community Expert
Mar 24, 2025 10:39 PM UTC

Do you want to allow the user to replace that value ("1") when Monday is selected?

Translate
try67
Community Expert
Community Expert
Mar 24, 2025 10:39 PM UTC

Also, what are the names of the drop-down and text fields?

Translate
Participant
Mar 24, 2025 10:50 PM UTC

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

Translate