NUBIC/surveyor — Issue #251: Dropdowns inside of group display as radio buttons
Author: Nataliya
Created: 2011-11-18 20:12:05+00:00
State: open

Unless the style :display_type => :inline is specified on the group, the dropdowns are shown as radiobuttons.

survey "temp" do
section "INTRO", :reference_identifier=>"HOUSEHOLD_INVENTORY" do
q_MOVE_INFO "What is the address of your new home?",
:pick => :one,
:data_export_identifier=>"BIRTH_VISIT_2.MOVE_INFO"
a_1 "Address known"
a_2 "Out of the country"
a_3 "PO Box address only"
a_neg_1 "Refused"
a_neg_2 "Don't know"

group "Address information" do
dependency :rule=>"A"
condition_A :q_MOVE_INFO , "==", :a_1

q_NEW_STATE "State", :display_type => :dropdown, :pick=>:one,
:data_export_identifier=>"BIRTH_VISIT_2.NEW_STATE"
a_1 "AL"
a_2 "AK"
a_3 "AZ"
a_4 "AR"
a_5 "CA"
a_6 "CO"

end
end
end