I’ve got the following problem,
I’ve created two check_boxes in my view. The user has to select one
but isn’t allowed to seth both of them together on true. Now i am
looking for functionality that can help me doing the folling:
CheckBox1 = True, The user sets CheckBox2 from False to True, now
CheckBox1 should automatically become False.
CheckBox2 = True, The user sets CheckBox1 from False to True, now
CheckBox2 should automatically become False.
Is there somebody, who knows how to build a function for that?
The select_boxes in my view look like this:
<%= check_box ‘account’, ‘agriculture’ %>
<%= check_box ‘account’, ‘vat_duty’ %>
-> agriculture and var_duty are both existing fields in my model.
Thnx Michel Dogger