Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Help: Conditional Formatting and manual typing

New Here ,
Mar 24, 2025 Mar 24, 2025

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.

TOPICS
PDF forms
119
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 24, 2025 Mar 24, 2025

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 24, 2025 Mar 24, 2025

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 24, 2025 Mar 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 24, 2025 Mar 24, 2025

Just remove that last line, then.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 24, 2025 Mar 24, 2025
LATEST

Thanks, will try that

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines