feat(options): Questions tab 'Answer options and subquestions' section; answerstextcolor becomes a 6-way color chooser (row 178 plan P3)

New section in the Questions pane (h3 + first col-md-4 of a 3-column grid,
only it used): answersfont + answerstextcolor + answerstextcolorcustom,
moved up in config.xml between the title block and the help options,
width 12 -> 4. answerstextcolor upgraded to the chooser scheme
(default|defaultbackgroundcolor|color1|color2|color3|other, default stays
'default'), added to aColorChooserKeys in options.twig/options.js
(OPTIONS_JS_TOKEN 20261129.2) and to the build.php chooser migration.
Views (answers, survey_question_help, valid_message_and_help): 6-way
mapping with legacy primary/secondary + raw hex passthrough.
All 3 variants rebuilt, example config synced.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
Tammo ter Hark 2026-11-29 15:08:49 +01:00
commit e061f7c0f3
8 changed files with 77 additions and 40 deletions

View file

@ -456,18 +456,38 @@
<option value="other">Other ...</option>
</dropdownoptions></questionbackgroundcolor>
<questionbackgroundcolorcustom type="colorpicker" category="Questions" width="4" title="Custom question body background color (for 'Other ...')" parent="questionbackgroundcolor">#ffffff</questionbackgroundcolorcustom>
<!-- Row 178 plan P3 (row 184): section "Answer options and subquestions"
(options.twig) — a three-column grid (col-md-4, width 4) of which only the
first column is used: font chooser + 6-way color chooser + custom for the
answers AND subquestions (both are rendered by answers.twig with these
options). answerstextcolor uses the color-chooser scheme like the P2 title
colors; default mode stays "default" (Default font color). -->
<answersfont type="fontselect" category="Questions" width="4" title="Font for answers and subquestions">base</answersfont>
<answerstextcolor type="dropdown" category="Questions" width="4" title="Text color for answers and subquestions" options="default|defaultbackgroundcolor|color1|color2|color3|other" optionlabels="Default font color|Default background color|Color 1|Color 2|Color 3|Other ...">default
<dropdownoptions>
<option value="default" data-default="1">[Default font color]</option>
<option value="defaultbackgroundcolor">Default background color</option>
<option value="color1">Color 1</option>
<option value="color2">Color 2</option>
<option value="color3">Color 3</option>
<option value="other">Other ...</option>
</dropdownoptions></answerstextcolor>
<answerstextcolorcustom type="colorpicker" category="Questions" width="4" title="Custom text color for answers and subquestions (for 'Other ...')" parent="answerstextcolor">#444444</answerstextcolorcustom>
<!-- Questions
HOUSE-STYLE: the colorpicker options in this section (question
title/background/help/help-font/border/checkbox colors) are house-style
colors. NOT house-style (structural, same for all variants):
questionborder, questionborderstyle, the borderradius values,
questiondropdown and questionhelptextposition.
Row 178/179 plan: order = the sections of the Questions tab as rendered by
Row 178 plan: order = the sections of the Questions tab as rendered by
options.twig (aQSections/aQSlots): first the "Overall question" section
(width 6 = the single col-md-6), then the "Question title and body"
section (three col-md-4 columns, width 4): col1 title font chooser/color
chooser + legacy picker, col2 title background chooser, col3 body
background chooser; then the remaining legacy columns (help, border,
(width 4 = the first col-md-4 of a three-column grid, row 183), then the
"Question title and body" section (three col-md-4 columns, width 4):
col1 title font chooser/color chooser + legacy picker, col2 title
background chooser, col3 body background chooser; then (P3/row 184) the
"Answer options and subquestions" section (width 4, first col-md-4 of a
three-column grid, only it used): answers font + 6-way color chooser +
custom; then the remaining legacy columns (help, border,
checkbox color), then the rest full-width (width 12). Inside a pane
column each option stacks as col-12. The border children
carry parent="questionborder"; the show-values "box|top" cannot be an
@ -488,8 +508,9 @@
<questionborderradiusBL type="duration" category="Questions" width="4" title="Border radius bottom left" parent="questionborder">5px</questionborderradiusBL>
<questionborderradiusBR type="duration" category="Questions" width="4" title="Border radius bottom right" parent="questionborder">5px</questionborderradiusBR>
<checkboxcolor type="colorpicker" category="Questions" width="4" title="Checkbox/radiobutton color (when checked)" options="on|off" optionlabels="Yes|No">#ff005f</checkboxcolor>
<!-- Per-element font+color combos (Prompt U; row 178 plan P3/P6 move the
answers/buttons ones into their own sections/tab). Each element gets:
<!-- Per-element font+color combos (Prompt U; row 178 plan P6 moves the
buttons ones into their own tab; the answers ones moved to the
"Answer options and subquestions" section above in P3). Each element gets:
- <el>font (type "fontselect"): the SAME choices as the base "font"
dropdown above (bundled + variant-custom + browser fonts), plus a
first option "Same as base font" (value "base" = no extra class, the
@ -501,15 +522,6 @@
color fontcolor). Resolved to an inline style="color: …" in the views.
- <el>textcolorcustom (colorpicker): only visible when <el>textcolor
= "other" (parent show-value "other"). -->
<answersfont type="fontselect" category="Questions" width="12" title="Font for answers and help texts">base</answersfont>
<answerstextcolor type="dropdown" category="Questions" width="12" title="Text color for answers and help texts" options="default|primary|secondary|other" optionlabels="Default font color|Primary color|Secondary color|Other…">default
<dropdownoptions>
<option value="default" data-default="1">[Default font color]</option>
<option value="primary">Primary color</option>
<option value="secondary">Secondary color</option>
<option value="other">Other…</option>
</dropdownoptions></answerstextcolor>
<answerstextcolorcustom type="colorpicker" category="Questions" width="12" title="Custom text color for answers and help texts" parent="answerstextcolor">#444444</answerstextcolorcustom>
<buttonsfont type="fontselect" category="Questions" width="12" title="Font for the buttons (Previous/Next/Submit)">base</buttonsfont>
<buttonstextcolor type="dropdown" category="Questions" width="12" title="Text color for the buttons (Previous/Next/Submit)" options="default|primary|secondary|other" optionlabels="Default font color|Primary color|Secondary color|Other…">default
<dropdownoptions>

View file

@ -33,9 +33,10 @@ var ThemeOptions = function () {
// class selector_color_mode + swatch chips + a <key>custom colorpicker child);
// row 157: the group title/description text colors joined the scheme;
// row 180 / plan P2: the Questions "title" section keys as well
// (questiontitletextcolor, questiontitlebackgroundcolor, questionbackgroundcolor).
// (questiontitletextcolor, questiontitlebackgroundcolor, questionbackgroundcolor);
// row 184 / plan P3: answerstextcolor as well.
// Must stay in sync with aColorChooserKeys in options/options.twig.
var aColorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor', 'bodybackgroundcolor', 'grouptitletextcolor', 'groupdescriptiontextcolor', 'questiontitletextcolor', 'questiontitlebackgroundcolor', 'questionbackgroundcolor'];
var aColorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor', 'bodybackgroundcolor', 'grouptitletextcolor', 'groupdescriptiontextcolor', 'questiontitletextcolor', 'questiontitlebackgroundcolor', 'questionbackgroundcolor', 'answerstextcolor'];
// the 5 presets, in the SAME order as the dropdown options in config.xml
// (object key order = swatch chip order) — row 125: "Default background color"
// is the SECOND choice, right after "Default font color".

View file

@ -47,7 +47,7 @@
heuristically cached copy (the file has only Last-Modified/ETag, no Cache-Control).
Re-register it with a version token: bump OPTIONS_JS_TOKEN below whenever
options/options.js changes, so every browser fetches the new file once. #}
{% set OPTIONS_JS_TOKEN = '20261129.1' %}
{% set OPTIONS_JS_TOKEN = '20261129.2' %}
{{ unregisterScriptFile(optionsPath ~ '/options.js') }}
{{ registerScriptFile(optionsPath ~ '/options.js?v=' ~ OPTIONS_JS_TOKEN, 'POS_END') }}
@ -276,7 +276,11 @@
{% set aFontElements = ['questiontitle', 'answers', 'grouptitle', 'groupdescription', 'buttons'] %}
{% set aColorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor', 'bodybackgroundcolor', 'grouptitletextcolor', 'groupdescriptiontextcolor', 'questiontitletextcolor', 'questiontitlebackgroundcolor', 'questionbackgroundcolor'] %}
{# row 180 / plan P2: the Questions "title" section keys joined the chooser scheme
(questiontitletextcolor, questiontitlebackgroundcolor, questionbackgroundcolor);
row 184 / plan P3: answerstextcolor as well. Must stay in sync with
aColorChooserKeys in options/options.js. #}
{% set aColorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor', 'bodybackgroundcolor', 'grouptitletextcolor', 'groupdescriptiontextcolor', 'questiontitletextcolor', 'questiontitlebackgroundcolor', 'questionbackgroundcolor', 'answerstextcolor'] %}
{% set aShowIfValues = { 'questionborder': 'box|top', 'navbarfontcolor': 'other' } %}
{% for el in aFontElements %}{% set aShowIfValues = aShowIfValues|merge({ (el ~ 'textcolor'): 'other' }) %}{% endfor %}
@ -307,17 +311,20 @@
or the full-width rest ("rest"). P1 added "overall", P2 added "title"; P3-P5 add
the remaining sections. #}
{# row 183: the "Overall question" section is a THREE-column grid (colClass
col-md-4), only the first column is used (the two distance options) #}
col-md-4), only the first column is used (the two distance options).
Row 184 / plan P3: same for "Answer options and subquestions" (answers*) #}
{% set aQSections = [
{ 'id': 'overall', 'h3': 'Overall question', 'colClass': 'col-md-4' },
{ 'id': 'title', 'h3': 'Question title and body', 'colClass': 'col-md-4' }
{ 'id': 'title', 'h3': 'Question title and body', 'colClass': 'col-md-4' },
{ 'id': 'answers', 'h3': 'Answer options and subquestions', 'colClass': 'col-md-4' }
] %}
{% set aQSlots = {
'questiondistance': 'overall:0', 'questiondistancebottom': 'overall:0',
'questiontitlefont': 'title:0', 'questiontitletextcolor': 'title:0', 'questiontitletextcolorcustom': 'title:0',
'questiontitlefontsize': 'title:0', 'questiontitlefontoptions': 'title:0', 'questiontitlefontcolor': 'title:0',
'questiontitlebackgroundcolor': 'title:1', 'questiontitlebackgroundcolorcustom': 'title:1',
'questionbackgroundcolor': 'title:2', 'questionbackgroundcolorcustom': 'title:2'
'questionbackgroundcolor': 'title:2', 'questionbackgroundcolorcustom': 'title:2',
'answersfont': 'answers:0', 'answerstextcolor': 'answers:0', 'answerstextcolorcustom': 'answers:0'
} %}
{# row 147: all group-related options of the "Questions" category — they are

View file

@ -272,13 +272,14 @@ foreach ($logoPositions as $pos) {
// headerbackgroundcolor, progressbarcolor, progressbarbackgroundcolor,
// progressbarfontcolor, bodybackgroundcolor, grouptitletextcolor,
// groupdescriptiontextcolor; row 180 plan P2 adds questiontitletextcolor,
// questiontitlebackgroundcolor, questionbackgroundcolor) became mode dropdowns
// questiontitlebackgroundcolor, questionbackgroundcolor; row 184 plan P3 adds
// answerstextcolor) became mode dropdowns
// (default|defaultbackgroundcolor|color1|color2|color3|other) with a <key>custom
// colorpicker child. A legacy HEX value in the json means "custom color": map it
// to mode "other" and move the hex into the <key>custom child, so the variant
// default stays valid for the dropdown. A legacy mode "primary"/"secondary"
// (old 4-way textcolor dropdown) maps to "color1"/"color2".
$colorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor', 'bodybackgroundcolor', 'grouptitletextcolor', 'groupdescriptiontextcolor', 'questiontitletextcolor', 'questiontitlebackgroundcolor', 'questionbackgroundcolor'];
$colorChooserKeys = ['navbarfontcolor', 'headerbackgroundcolor', 'progressbarcolor', 'progressbarbackgroundcolor', 'progressbarfontcolor', 'bodybackgroundcolor', 'grouptitletextcolor', 'groupdescriptiontextcolor', 'questiontitletextcolor', 'questiontitlebackgroundcolor', 'questionbackgroundcolor', 'answerstextcolor'];
$colorChooserLegacyModes = ['primary' => 'color1', 'secondary' => 'color2'];
foreach ($colorChooserKeys as $ck) {
if (isset($definition['options'][$ck])

View file

@ -31,7 +31,7 @@
<version>3.3.0</version>
<apiVersion>3</apiVersion>
<description>&lt;strong&gt;Example variant of Respondage Vanilla&lt;/strong&gt;&lt;br&gt;Public example of a build output: only a few house-style option values differ, all views, CSS and JS are inherited from the mother theme via extends.</description>
<lastUpdate>2026-11-29 13:59:51</lastUpdate>
<lastUpdate>2026-11-29 14:06:42</lastUpdate>
<extends>vanilla_respondage</extends>
</metadata>
<compatibility>
@ -343,18 +343,31 @@
<questionbackgroundcolor type="dropdown" category="Questions" width="4" title="Question body background color" options="default|defaultbackgroundcolor|color1|color2|color3|other" optionlabels="Default font color|Default background color|Color 1|Color 2|Color 3|Other ...">defaultbackgroundcolor
<dropdownoptions><option value="default">Default font color</option><option value="defaultbackgroundcolor" data-default="1">[Default background color]</option><option value="color1">Color 1</option><option value="color2">Color 2</option><option value="color3">Color 3</option><option value="other">Other ...</option></dropdownoptions></questionbackgroundcolor>
<questionbackgroundcolorcustom type="colorpicker" category="Questions" width="4" title="Custom question body background color (for 'Other ...')" parent="questionbackgroundcolor">#ffffff</questionbackgroundcolorcustom>
<!-- Row 178 plan P3 (row 184): section "Answer options and subquestions"
(options.twig) — a three-column grid (col-md-4, width 4) of which only the
first column is used: font chooser + 6-way color chooser + custom for the
answers AND subquestions (both are rendered by answers.twig with these
options). answerstextcolor uses the color-chooser scheme like the P2 title
colors; default mode stays "default" (Default font color). -->
<answersfont type="fontselect" category="Questions" width="4" title="Font for answers and subquestions">base</answersfont>
<answerstextcolor type="dropdown" category="Questions" width="4" title="Text color for answers and subquestions" options="default|defaultbackgroundcolor|color1|color2|color3|other" optionlabels="Default font color|Default background color|Color 1|Color 2|Color 3|Other ...">default
<dropdownoptions><option value="default" data-default="1">[Default font color]</option><option value="defaultbackgroundcolor">Default background color</option><option value="color1">Color 1</option><option value="color2">Color 2</option><option value="color3">Color 3</option><option value="other">Other ...</option></dropdownoptions></answerstextcolor>
<answerstextcolorcustom type="colorpicker" category="Questions" width="4" title="Custom text color for answers and subquestions (for 'Other ...')" parent="answerstextcolor">#444444</answerstextcolorcustom>
<!-- Questions
HOUSE-STYLE: the colorpicker options in this section (question
title/background/help/help-font/border/checkbox colors) are house-style
colors. NOT house-style (structural, same for all variants):
questionborder, questionborderstyle, the borderradius values,
questiondropdown and questionhelptextposition.
Row 178/179 plan: order = the sections of the Questions tab as rendered by
Row 178 plan: order = the sections of the Questions tab as rendered by
options.twig (aQSections/aQSlots): first the "Overall question" section
(width 6 = the single col-md-6), then the "Question title and body"
section (three col-md-4 columns, width 4): col1 title font chooser/color
chooser + legacy picker, col2 title background chooser, col3 body
background chooser; then the remaining legacy columns (help, border,
(width 4 = the first col-md-4 of a three-column grid, row 183), then the
"Question title and body" section (three col-md-4 columns, width 4):
col1 title font chooser/color chooser + legacy picker, col2 title
background chooser, col3 body background chooser; then (P3/row 184) the
"Answer options and subquestions" section (width 4, first col-md-4 of a
three-column grid, only it used): answers font + 6-way color chooser +
custom; then the remaining legacy columns (help, border,
checkbox color), then the rest full-width (width 12). Inside a pane
column each option stacks as col-12. The border children
carry parent="questionborder"; the show-values "box|top" cannot be an
@ -375,8 +388,9 @@
<questionborderradiusBL type="duration" category="Questions" width="4" title="Border radius bottom left" parent="questionborder">5px</questionborderradiusBL>
<questionborderradiusBR type="duration" category="Questions" width="4" title="Border radius bottom right" parent="questionborder">5px</questionborderradiusBR>
<checkboxcolor type="colorpicker" category="Questions" width="4" title="Checkbox/radiobutton color (when checked)" options="on|off" optionlabels="Yes|No">#ff005f</checkboxcolor>
<!-- Per-element font+color combos (Prompt U; row 178 plan P3/P6 move the
answers/buttons ones into their own sections/tab). Each element gets:
<!-- Per-element font+color combos (Prompt U; row 178 plan P6 moves the
buttons ones into their own tab; the answers ones moved to the
"Answer options and subquestions" section above in P3). Each element gets:
- <el>font (type "fontselect"): the SAME choices as the base "font"
dropdown above (bundled + variant-custom + browser fonts), plus a
first option "Same as base font" (value "base" = no extra class, the
@ -388,10 +402,6 @@
color fontcolor). Resolved to an inline style="color: …" in the views.
- <el>textcolorcustom (colorpicker): only visible when <el>textcolor
= "other" (parent show-value "other"). -->
<answersfont type="fontselect" category="Questions" width="12" title="Font for answers and help texts">base</answersfont>
<answerstextcolor type="dropdown" category="Questions" width="12" title="Text color for answers and help texts" options="default|primary|secondary|other" optionlabels="Default font color|Primary color|Secondary color|Other…">default
<dropdownoptions><option value="default" data-default="1">[Default font color]</option><option value="primary">Primary color</option><option value="secondary">Secondary color</option><option value="other">Other…</option></dropdownoptions></answerstextcolor>
<answerstextcolorcustom type="colorpicker" category="Questions" width="12" title="Custom text color for answers and help texts" parent="answerstextcolor">#444444</answerstextcolorcustom>
<buttonsfont type="fontselect" category="Questions" width="12" title="Font for the buttons (Previous/Next/Submit)">base</buttonsfont>
<buttonstextcolor type="dropdown" category="Questions" width="12" title="Text color for the buttons (Previous/Next/Submit)" options="default|primary|secondary|other" optionlabels="Default font color|Primary color|Secondary color|Other…">default
<dropdownoptions><option value="default" data-default="1">[Default font color]</option><option value="primary">Primary color</option><option value="secondary">Secondary color</option><option value="other">Other…</option></dropdownoptions></buttonstextcolor>

View file

@ -26,7 +26,9 @@
primarycolor, secondary -> secondarycolor, other -> answerstextcolorcustom.
Emitted as an inline style on the element below. #}
{% set sAnswersTextColorMode = aSurveyInfo.options.answerstextcolor|default('default') %}
{% set sAnswersTextColor = sAnswersTextColorMode == 'primary' ? aSurveyInfo.options.primarycolor|default('') : (sAnswersTextColorMode == 'secondary' ? aSurveyInfo.options.secondarycolor|default('') : (sAnswersTextColorMode == 'other' ? aSurveyInfo.options.answerstextcolorcustom|default('') : aSurveyInfo.options.fontcolor|default(''))) %}
{# row 184 / plan P3: 6-way color-chooser scheme (default|defaultbackgroundcolor|color1|color2|color3|other) + legacy modes primary/secondary and raw hex passthrough #}
{% set oA = aSurveyInfo.options %}
{% set sAnswersTextColor = sAnswersTextColorMode matches '/^#[0-9a-fA-F]{3,8}$/' ? sAnswersTextColorMode : (sAnswersTextColorMode == 'color1' or sAnswersTextColorMode == 'primary' ? oA.primarycolor|default('') : (sAnswersTextColorMode == 'color2' or sAnswersTextColorMode == 'secondary' ? oA.secondarycolor|default('') : (sAnswersTextColorMode == 'color3' ? oA.tertiarycolor|default('') : (sAnswersTextColorMode == 'defaultbackgroundcolor' ? oA.defaultbackgroundcolor|default('') : (sAnswersTextColorMode == 'other' ? oA.answerstextcolorcustom|default('') : oA.fontcolor|default('')))))) %}
<!-- Answer -->
<div class="{{ aSurveyInfo.class.answercontainer }} col-12 {% if sAnswersFont != 'base' %}font-{{ sAnswersFont }}{% endif %}" {% if sAnswersTextColor != '' %}style="color: {{ sAnswersTextColor }};"{% endif %} {{ aSurveyInfo.attr.answercontainer }}>

View file

@ -24,7 +24,9 @@
primarycolor, secondary -> secondarycolor, other -> answerstextcolorcustom.
Emitted as an inline style on the element below. #}
{% set sAnswersTextColorMode = aSurveyInfo.options.answerstextcolor|default('default') %}
{% set sAnswersTextColor = sAnswersTextColorMode == 'primary' ? aSurveyInfo.options.primarycolor|default('') : (sAnswersTextColorMode == 'secondary' ? aSurveyInfo.options.secondarycolor|default('') : (sAnswersTextColorMode == 'other' ? aSurveyInfo.options.answerstextcolorcustom|default('') : aSurveyInfo.options.fontcolor|default(''))) %}
{# row 184 / plan P3: 6-way color-chooser scheme (default|defaultbackgroundcolor|color1|color2|color3|other) + legacy modes primary/secondary and raw hex passthrough #}
{% set oA = aSurveyInfo.options %}
{% set sAnswersTextColor = sAnswersTextColorMode matches '/^#[0-9a-fA-F]{3,8}$/' ? sAnswersTextColorMode : (sAnswersTextColorMode == 'color1' or sAnswersTextColorMode == 'primary' ? oA.primarycolor|default('') : (sAnswersTextColorMode == 'color2' or sAnswersTextColorMode == 'secondary' ? oA.secondarycolor|default('') : (sAnswersTextColorMode == 'color3' ? oA.tertiarycolor|default('') : (sAnswersTextColorMode == 'defaultbackgroundcolor' ? oA.defaultbackgroundcolor|default('') : (sAnswersTextColorMode == 'other' ? oA.answerstextcolorcustom|default('') : oA.fontcolor|default('')))))) %}
<!-- Survey question help -->
<div class="{{ aSurveyInfo.class.helpcontainer }} text-info col-12 {% if sAnswersFont != 'base' %}font-{{ sAnswersFont }}{% endif %}" {% if sAnswersTextColor != '' %}style="color: {{ sAnswersTextColor }};"{% endif %} {{ aSurveyInfo.attr.helpcontainer }}>

View file

@ -27,7 +27,9 @@
primarycolor, secondary -> secondarycolor, other -> answerstextcolorcustom.
Emitted as an inline style on the element below. #}
{% set sAnswersTextColorMode = aSurveyInfo.options.answerstextcolor|default('default') %}
{% set sAnswersTextColor = sAnswersTextColorMode == 'primary' ? aSurveyInfo.options.primarycolor|default('') : (sAnswersTextColorMode == 'secondary' ? aSurveyInfo.options.secondarycolor|default('') : (sAnswersTextColorMode == 'other' ? aSurveyInfo.options.answerstextcolorcustom|default('') : aSurveyInfo.options.fontcolor|default(''))) %}
{# row 184 / plan P3: 6-way color-chooser scheme (default|defaultbackgroundcolor|color1|color2|color3|other) + legacy modes primary/secondary and raw hex passthrough #}
{% set oA = aSurveyInfo.options %}
{% set sAnswersTextColor = sAnswersTextColorMode matches '/^#[0-9a-fA-F]{3,8}$/' ? sAnswersTextColorMode : (sAnswersTextColorMode == 'color1' or sAnswersTextColorMode == 'primary' ? oA.primarycolor|default('') : (sAnswersTextColorMode == 'color2' or sAnswersTextColorMode == 'secondary' ? oA.secondarycolor|default('') : (sAnswersTextColorMode == 'color3' ? oA.tertiarycolor|default('') : (sAnswersTextColorMode == 'defaultbackgroundcolor' ? oA.defaultbackgroundcolor|default('') : (sAnswersTextColorMode == 'other' ? oA.answerstextcolorcustom|default('') : oA.fontcolor|default('')))))) %}
<!-- LimeSurvey valid message and help -->
<div class="{{ aSurveyInfo.class.questionvalidcontainer }} text-info col-12 {% if sAnswersFont != 'base' %}font-{{ sAnswersFont }}{% endif %}" {% if sAnswersTextColor != '' %}style="color: {{ sAnswersTextColor }};"{% endif %} {{ aSurveyInfo.attr.questionvalidcontainer }}>