Skip to content
Snippets Groups Projects
Commit 2182acb4 authored by MadeleineHero's avatar MadeleineHero Committed by Martin Trigaux
Browse files

[FIX] survey: display_mode is required if question type is simple_choice

Fixes #2461
parent 990d05e7
No related branches found
No related tags found
No related merge requests found
......@@ -344,7 +344,7 @@
<field name="matrix_subtype" attrs="{'invisible':[('type','not in',['matrix'])]}"/>
</group>
<group string="Display mode" attrs="{'invisible':[('type','not in',['simple_choice', 'multiple_choice'])]}">
<field name="display_mode" string="Format" attrs="{'invisible':[('type','not in',['simple_choice'])]}"/>
<field name="display_mode" string="Format" attrs="{'invisible':[('type','not in',['simple_choice'])]},'required':[('type','=','simple_choice')]}"/>
<field name="column_nb" string="Number of columns" attrs="{'invisible':[('display_mode','=','dropdown'), ('type','=','simple_choice')]}"/>
</group>
<group string="Allow Comments" attrs="{'invisible':[('type','not in',['simple_choice','multiple_choice', 'matrix'])]}">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment