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

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

New Here ,
Apr 19, 2024 Apr 19, 2024

Copy link to clipboard

Copied

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

Views

92

Translate

Translate

Report

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

Copy link to clipboard

Copied

You should use the Calculate event of the third field.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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