Display a value in calculated field based on a selection in a radio button | Community
Skip to main content
Adobe Employee
August 23, 2023
Solved

Display a value in calculated field based on a selection in a radio button

  • August 23, 2023
  • 1 reply
  • 506 views

Need advise from experts:

In Workfront:

We have a radio button witih 4 selections "A", "B", "C", and "D".

we have a calculated field that we want to display 1, if in the radio button, "A", was selected, 2 if "B" was selected, 3 if "C" was selected and 4 if "D" was selected.

How do we compose the calculated formula to make this work

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Madalyn_Destafney

Hi there, you’d need to add custom form fields for all of your answer options and use display logic to associate them.

So you have the main question with your A-D radio buttons. You’d also have a custom form field question associated with each, so fields 1-4 based on your example. 
In your display logic on 1-4 fields, you’d indicate if answer A is selected then show question 1. If answer B is selected then show question 2, etc. So you’d have 5 fields for this total: 1 for radio buttons A-D, then 1 field each for answers 1-4.

 

If you found this helpful, please mark correct to help others 😃

1 reply

Madalyn_Destafney
Community Advisor
Madalyn_DestafneyCommunity AdvisorAccepted solution
Community Advisor
August 24, 2023

Hi there, you’d need to add custom form fields for all of your answer options and use display logic to associate them.

So you have the main question with your A-D radio buttons. You’d also have a custom form field question associated with each, so fields 1-4 based on your example. 
In your display logic on 1-4 fields, you’d indicate if answer A is selected then show question 1. If answer B is selected then show question 2, etc. So you’d have 5 fields for this total: 1 for radio buttons A-D, then 1 field each for answers 1-4.

 

If you found this helpful, please mark correct to help others 😃

If this helped you, please mark correct to help others : )