Skip to main content
Participant
March 24, 2025
Question

Help: Conditional Formatting and manual typing

  • March 24, 2025
  • 1 reply
  • 215 views

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.

1 reply

try67
Community Expert
Community Expert
March 24, 2025

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

try67
Community Expert
Community Expert
March 24, 2025

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

Participant
March 24, 2025

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