Class: REDCap::Form::CheckboxesWithRadioButtonsOrOther

Inherits:
CheckboxesWithOther show all
Defined in:
lib/red_cap/form/fields.rb

Constant Summary

Constants inherited from Field

Field::KEYS

Instance Attribute Summary

Attributes inherited from Field

#attributes, #form, #responses

Instance Method Summary collapse

Methods inherited from CheckboxesWithOther

#other_text_field

Methods inherited from RadioButtons

#options

Methods inherited from Field

#method_missing

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class REDCap::Form::Field

Instance Method Details

#valueObject



125
126
127
128
129
130
131
# File 'lib/red_cap/form/fields.rb', line 125

def value
  radio_values = selected_options.keys.map do |key|
    radio_field_for(key).value
  end

  Hash[super.zip(radio_values)]
end