Set value of text field based on radio button selection

I have a radio button with 2 options, {"Yes","No"}, if the user selects "Yes" I want to systematically update the value of a text field to "Yes was selected", if the user selects "No" then I want to set the value of the text filed to "No was selected".

I have rule input values for both the radio button and the text field. How do i set the value of the text field based on the radio button selection

OriginalPostID-220667

OriginalPostID-220667

  Discussion posts and replies are publicly visible