Expand my Community achievements bar.

# Workfront

The Community Advisors application is now OPEN for the second class of 2024. Apply to become a part of this exclusive program!
SOLVED

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

Employee

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

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 this helped you, please mark correct to help others : )

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.