Expand my Community achievements bar.

SOLVED

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

Avatar

Employee

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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 : )

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

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 : )