Assign value to radio button


#1

Matrix Version: v5.3.4.2

Is there anyway to assign value to radio button field separately from the label? From what I can see the value of radio button selected will be the same as the label displayed on the screen. We have some use case where the value submitted from a radio button needs to be different to the label.

Thanks.


(Bart Banda) #2

Not on Custom Forms unfortunately, but probably something we need to add.

You could however have a keyword modifier run on the value wherever you are outputting it to convert it to the value you need. For example:

%response_<parent_id>_<question_id>^replace:3:foo%


#3

Hi @Bart that could be a workaround for the time being if that keyword modifier works on email body that we send upon submission of a form?

Although it is still not ideal because we will have two places to maintain when label and/or value change.


(Bart Banda) #4

Yep, it should work there to.

Yea not ideal, have added a new feature request for it in our roadmap here for now: https://squizmap.squiz.net/matrix/11801