Skip to main content
Level 3
July 13, 2023
Solved

Calculated field on Selection of another field.

I want to set up a calculated field to have a pre-set value based on a selection of another field (radio button). So suppose one radio button have 4 options a,b,c and d, I want to have a calculated field that shows 1 for a, 2 for b, 3 for c and d.

Is it possible?

 

Thanks,

Nisha

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
NishaPatelAccepted solution
Level 3
July 19, 2023

Thanks, this is working for me 🙂 

7 replies

RandyRoberts
Community Advisor
Community Advisor
July 13, 2023

This is possible but the caveat is the form has to be refreshed before any calc takes place. This is usually done by selecting "Recalculate Expressions" from the elipsis menu on the Project.

Translate
Kundanism
Level 10
July 14, 2023

Possible to get the code for the same?

🙂

Translate
Level 3
July 14, 2023

Yes Please.

Translate
Adobe Employee
July 19, 2023

Fields:

Radio Type = A, B, C, D

Calculated field = 

IF({DE:Radio Type}="A","1",
IF({DE:Radio Type}="B","2",
IF({DE:Radio Type}="C","3",
IF({DE:Radio Type}="D","4"))))

Translate
NishaPatelAuthorAccepted solution
Level 3
July 19, 2023

Thanks, this is working for me 🙂 

Translate