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

If, Else Statement Help

Community Beginner ,
Nov 18, 2024 Nov 18, 2024

Copy link to clipboard

Copied

I am working on an Adobe Form where I need a field to poulate a value based on the value in another field.

 

Here is the scenario:

Total_Score1

Performance_Rating1

22-24

EE

16-21

ME

10-15

NI

0-9

DNM

 

I tried using this on my Adobe Form to populate field "Performance_Rating1"

if ("TOTAL_SCORE1" > 21){ event.value = "EE";

} else if ("TOTAL_SCORE1" > 15){ event.value = "ME";

} else if ("TOTAL_SCORE1" > 9){ event.value = "NI";

} else event.value = "DNM";

 

The only result I am getting is "DNM" regardless of the value in TOTAL_SCORE1

TOPICS
How to

Views

203

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
1 ACCEPTED SOLUTION
Community Beginner ,
Nov 19, 2024 Nov 19, 2024

Copy link to clipboard

Copied

Thank you.  I found the help I needed in another discussion...  This is the formula that worked

 

if (getField("TOTAL_SCORE1").value > 21){ event.value = "EE"; }

else if (getField("TOTAL_SCORE1").value > 15){ event.value = "ME"; }

else if (getField("TOTAL_SCORE1").value > 9){ event.value = "NI"; }

else event.value = "DNM";

View solution in original post

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

Copy link to clipboard

Copied

quote

I am working on an Adobe Form

By @DJ_Avalon

 

Adobe is a company that make a lot of applications. Possibly you mean Acrobat? Let us know which Adobe app you are using and we will move your post for you.

 

Jane

 

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 Beginner ,
Nov 19, 2024 Nov 19, 2024

Copy link to clipboard

Copied

Thank you for the reply!  Yes it is an Adobe Acrobat form

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

Copy link to clipboard

Copied

in the future, to find the best place to post your message, use the list here, https://community.adobe.com/

p.s. i don't think the adobe website, and forums in particular, are easy to navigate, so don't spend a lot of time searching that forum list. do your best and we'll move the post (like this one has already been moved) if it helps you get responses.



<"moved from using the community">

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 Beginner ,
Nov 19, 2024 Nov 19, 2024

Copy link to clipboard

Copied

Thank you.  I found the help I needed in another discussion...  This is the formula that worked

 

if (getField("TOTAL_SCORE1").value > 21){ event.value = "EE"; }

else if (getField("TOTAL_SCORE1").value > 15){ event.value = "ME"; }

else if (getField("TOTAL_SCORE1").value > 9){ event.value = "NI"; }

else event.value = "DNM";

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

Copy link to clipboard

Copied

LATEST

you're welcome, and thank you for posting the solution!

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