I have a form that makes use of a Radio Box. I would like to set the Options of the Radio Box using some variables. This form has a piece of custom code pulling data from the db and set as variables.
I thought I would be able to simply set my variable values to the data array:
However this was not the case. Is there a syntax issue going on here?
I thought I would be able to simply set my variable values to the data array:
$form->data['fieldname'][0]['value'] = $myvariablename
However this was not the case. Is there a syntax issue going on here?
Hi Wayne,
I don't quite know what you are trying to do. Is this to set the values for individual radio buttons, or to set which button is pre-selected?
I don't think that you can set the values dynamically in CFv5 (there was an extra tab that allowed that in CFv4).
I think that you could use a Custom element to build a radio button group from your data as a workaround.
Bob
I don't quite know what you are trying to do. Is this to set the values for individual radio buttons, or to set which button is pre-selected?
I don't think that you can set the values dynamically in CFv5 (there was an extra tab that allowed that in CFv4).
I think that you could use a Custom element to build a radio button group from your data as a workaround.
Bob
Bob,
I am trying to set the values for the individual radio buttons. I came across this link:
http://www.chronoengine.com/faqs/58-cfv4/cfv4-elements-and-html/2647-how-do-i-build-a-select-drop-down-radio-button-or-checkbox-group.html
I was hoping I could use the same syntax mentioned in the link for CF V5, however it is referencing the CF V4 functionality. I will attempt using a Custom Element to build the radio button group as suggested.
Thanks for the speedy reply.
I am trying to set the values for the individual radio buttons. I came across this link:
http://www.chronoengine.com/faqs/58-cfv4/cfv4-elements-and-html/2647-how-do-i-build-a-select-drop-down-radio-button-or-checkbox-group.html
I was hoping I could use the same syntax mentioned in the link for CF V5, however it is referencing the CF V4 functionality. I will attempt using a Custom Element to build the radio button group as suggested.
Thanks for the speedy reply.
This topic is locked and no more replies can be posted.