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

Making fields visible based on value of feild 1 and feild 2

New Here ,
Apr 19, 2024 Apr 19, 2024

I have feild A and feild B both drop down feilds I want to display Feild C Text feild only if I have perticular selections from both feilds A and B.

 

Any suggestions please and where should I write the script?

 

Thank You in advance.

 

 

TOPICS
Print and prepress
222
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 ,
Apr 19, 2024 Apr 19, 2024

You should use the Calculate event of the third field.

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 ,
Apr 19, 2024 Apr 19, 2024

Thank you I will try. 
 Any suggestion on article or answer that I can look into?

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 ,
Apr 20, 2024 Apr 20, 2024
LATEST

You can use something like this code:

 

event.target.display = (this.getField("Field A").valueAsString = "123" && this.getField("Field B").valueAsString = "456") ? display.visible : display.hidden;

 

You'll need to adjust the field names and values, of course.

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 ,
Apr 19, 2024 Apr 19, 2024

I tried document level script but Did not work as I need to apply same logic to multiple feilds.Any idea why ? 

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 ,
Apr 19, 2024 Apr 19, 2024

We can't assist you effectively without a clear understanding of what you're trying to achieve. Please explain your needs in as much detail as possible.

Post the script you tried.

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