Skip to main content
Level 3
July 13, 2023
Respondido

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

Este tópico foi fechado para respostas.
NishaPatelResposta
Level 3
July 19, 2023

Thanks, this is working for me 🙂 

7 Respostas

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.

Traduzir
Kundanism
Level 10
July 14, 2023

Possible to get the code for the same?

🙂

Traduzir
Level 3
July 14, 2023

Yes Please.

Traduzir
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"))))

Traduzir
NishaPatelAutorResposta
Level 3
July 19, 2023

Thanks, this is working for me 🙂 

Traduzir