i’m looking for using a “radio” widget type in forms with the following possible attributes :
inputradio: widget: radio help: "you can choose" options: - [ "choice 1" ] - [ "choice 2" ] checked: "choice 1"
It mays occur several instances of radio buttons in the same forms.
i suppose that the good place shall be in the “/var/www/ood/apps/sys/dashboard/app/helpers/batch_connect/session_contexts_helper.rb” file which contains :
case widget when "select" form.select attrib.id, attrib.select_choices, field_options, attrib.html_options when "resolution_field" resolution_field(form, attrib.id, all_options) when "check_box" form.form_group attrib.id, help: field_options[:help] do form.check_box attrib.id, all_options, attrib.checked_value, attrib.unchecked_value end else form.send widget, attrib.id, all_options end
waiting for your effective help, as usual.