global.page.head Adds more HTML codes in the <HEAD> section of a page globally. |
<style name="global.page.head"> <![CDATA[
]]></style>
|
respview.client.meta Add additional <meta> tags. |
<style name="respview.client.meta"> <![CDATA[
]]></style>
|
respview.client.css Adds additional custom CSS after default external CSS links in the <head>. |
<style name="respview.client.css"> <![CDATA[
]]></style>
|
respview.client.js Adds additional custom Javascript after default external Javascript links in the <head>. |
<style name="respview.client.js"> <![CDATA[
]]></style>
|
survey.header Displays a header before the survey content and logo. |
<style name='survey.header'> <![CDATA[
<div class="page-header"></div>
<!-- /.page-header -->
]]></style>
|
survey.logo Displays the survey logo included in the survey tag. |
<style name='survey.logo'> <![CDATA[
\@if gv.inSurvey() and gv.survey.root.styles.ss.logoFile
<div class="logo logo-$(gv.survey.root.styles.ss.logoPosition)">
<img src="[static]/survey/$(gv.survey.root.styles.ss.logoFile)" class="logo-image" alt="Logo" />
</div>
<!-- /.logo -->
\@endif
]]></style>
|
buttons Displays the buttons at the bottom of the page. |
<style name='buttons'> <![CDATA[
<div class="survey-buttons">
$(left)
$(right)
</div>
<!-- #surveyButtons -->
]]></style>
|
button.continue Displays the "Continue" button. |
<style name='button.continue'> <![CDATA[
<input type="submit" name="continue" id="btn_continue" class="button continue" value="@(continue) »" onClick="var i = document.createElement('input');i.setAttribute('type', 'hidden');i.setAttribute('value', '1');i.setAttribute('name', '__has_javascript');document.forms.primary.appendChild(i);"/>
]]></style>
|
button.finish Displays the "Finish" button on the last page of the survey. |
<style name='button.finish'> <![CDATA[
<input type="submit" name="finish" id="btn_finish" class="button finish" value="@(finish)" onClick="var i = document.createElement('input');i.setAttribute('type', 'hidden');i.setAttribute('value', '1');i.setAttribute('name', '__has_javascript');document.forms.primary.appendChild(i);"/>
]]></style>
|
button.cancel Blank by default. Can be used for an additional button (e.g., "Back" or "Come back later"). |
<style name="button.cancel"> <![CDATA[
]]></style>
|
survey.completion Overrides the survey progress bar. |
<style name='survey.completion'> <![CDATA[
\@if not gv.survey.root.styles.ss.hideProgressBar
<div role="progressbar" aria-valuenow="$(percent)" aria-valuemin="0" aria-valuemax="100" class="progress-bar progress-${"top" if gv.survey.root.progressOnTop else "bottom"}" title="@(progress-bar) - $(percent)% @(complete)">
<div class="progress-box-outer" aria-hidden="true"><span class="progress-box-completed" style="width: $(percent)%;"></span></div>
<div class="progress-text" aria-hidden="true">$(percent)%</div>
</div>
<!-- /.progress-bar -->
\@endif
]]></style>
|
survey.respview.footer Displays a footer at the end of the survey page. |
<style name='survey.respview.footer'> <![CDATA[
<div class="footer">${v2_insertStyle('survey.respview.footer.support')}</div>
<!-- /.footer -->
]]></style>
|
survey.respview.footer.support Displays the support links at the bottom of the page. |
<style name="survey.respview.footer.support"> <![CDATA[
@(support)
]]></style>
|
button.goback Displays a "Back" button when backward navigation has been enabled (requires ss:enableNavigaton="1").
|
<style name='button.goback'> <![CDATA[
<input type="button" id="btn_goback" class="button back" onClick="Survey.postControl('back2')" value="« @(back)" />
]]></style>
|
page.head Blank by default. Adds more codes in the <head> section (even when overriding within a question).
|
<style name="page.head"> <![CDATA[
]]></style>
|
question.header Displayed at the beginning of a question. Defines where the question text, errors, instruction text, and answer options start. This style pipes other style blocks. This style can be used with mode before or after, but cannot be overridden. |
<style name='question.header'> <![CDATA[
<div id="question_${this.label}" class="question ${'disabledElement ' if why and gv.debug.qa else ''}${this.getName().lower()} label_${this.label} $(this.styles.ss.questionClassNames) $(hasError)"${' role="radiogroup" aria-labelledby="' + (this.label + '_' + ec.enabledCols[0].label if ec.haveColLegend else 'question_text_' + this.label) + '"' if ec.simpleList else ''}>
${v2_insertStyle('survey.question')}
$(error)
${v2_insertStyle('survey.question.instructions')}
${v2_insertStyle('survey.question.answers.start')}
]]></style>
|
survey.question Displays the question text. |
<style name='survey.question'> <![CDATA[
<h1 title="@(question)" class="question-text" id="question_text_${this.label}">${this.styles.html.showNumber and (str(number) + '. ') or ''}$(title)</h1>
<!-- /.question-text -->
]]></style>
|
survey.question.instructions Displays the instruction text. |
<style name='survey.question.instructions'> <![CDATA[
<h2 title="@(instructions)" class="instruction-text">$(comment)</h2>
<!-- /.instruction-text -->
]]></style>
|
survey.question.answers.start Displays the start of the question-answer table. |
<style name='survey.question.answers.start'> <![CDATA[
<div class="answers $(answerClassNames)">
$(fir)
\@if not ec.simpleList
<$(tag) class="grid $(gridClassNames)" data-settings="$(gridOptions)" data-height="${this.styles.ss.rowHeight if this.styles.ss.rowHeight else ""}" summary="This table contains form elements to answer the survey question">
\@if not simple
<tbody>
\@endif
\@if not forceDesktop
${v2_insertStyle('question.borderfix')}
\@endif
\@endif
]]></style>
|
question.group-column Displays the table row contain the column group headings. |
<style name='question.group-column'> <![CDATA[
<$(tag) class="row row-col-legends row-col-legends-top colGroup">
$(left)
$(elements)
$(right)
</$(tag)>
]]></style>
|
question.group-column-cell Displays the column group heading containing the column group text. |
<style name='question.group-column-cell'> <![CDATA[
<$(tag) scope="colgroup" colspan="$(span)" id="$(this.label)_$(group.label)" class="cell nonempty legend col-legend col-legend-top col-legend-group $(levels) ${"desktop" if this.grouping.cols else "mobile"} ${"col-legend-space" if this.grouping.cols and ec.haveLeftLegend and ec.haveRightLegend else "border-collapse"} $(group.styles.ss.groupClassNames)">
$(text)
</$(tag)>
]]></style>
|
question.top-legend Displays the table row containing the column legends. |
<style name='question.top-legend'> <![CDATA[
\@if ec.simpleList
$(legends)
\@else
\@if this.styles.ss.colLegendHeight
<$(tag) class="row row-col-legends row-col-legends-top ${"mobile-top-row-legend " if mobileOnly else ""}${"GtTenColumns " if ec.colCount > 10 else ""}colCount-$(colCount)" style="height:${this.styles.ss.colLegendHeight};">
\@else
<$(tag) class="row row-col-legends row-col-legends-top ${"mobile-top-row-legend " if mobileOnly else ""}${"GtTenColumns " if ec.colCount > 10 else ""}colCount-$(colCount)">
\@endif
$(left)
$(legends)
$(right)
</$(tag)>
\@if not simple
</tbody>
<tbody>
\@endif
\@endif
]]></style>
|
question.left-blank-legend Displays the table cell that is normally blank shown to the left of the question.top-legend. Check $(pos) to see if the position is top or bottom. |
<style name='question.left-blank-legend'> <![CDATA[
<$(tag) class="cell empty empty-left empty-$(pos) unused ${"desktop" if this.grouping.cols else "mobile"} border-collapse"></$(tag)>
]]></style>
|
question.top-legend-item Displays the row-column headings containing the column text.
|
<style name='question.top-legend-item'> <![CDATA[
\@if ec.simpleList
<div id="$(this.label)_$(col.label)" class="legend col-legend col-legend-top col-legend-basic $(levels) ${"col-legend-space" if this.grouping.cols and (col.group or col.index!=0) and ec.haveLeftLegend and ec.haveRightLegend else "border-collapse"} $(col.styles.ss.colClassNames) ${col.group.styles.ss.groupClassNames if col.group else ""} $(colError)">
$(text)
</div>
\@else
\@if this.styles.ss.colWidth
<$(tag) scope="col" id="$(this.label)_$(col.label)" class="cell nonempty legend col-legend col-legend-top col-legend-basic $(levels) ${"desktop" if this.grouping.cols else "mobile"} ${"col-legend-space" if this.grouping.cols and (col.group or col.index!=0) and ec.haveLeftLegend and ec.haveRightLegend else "border-collapse"} $(col.styles.ss.colClassNames) ${col.group.styles.ss.groupClassNames if col.group else ""} $(colError)" style="width:${this.styles.ss.colWidth}; min-width:${this.styles.ss.colWidth}">
$(text)
</$(tag)>
\@else
<$(tag) scope="col" id="$(this.label)_$(col.label)" class="cell nonempty legend col-legend col-legend-top col-legend-basic $(levels) ${"desktop" if this.grouping.cols else "mobile"} ${"col-legend-space" if this.grouping.cols and (col.group or col.index!=0) and ec.haveLeftLegend and ec.haveRightLegend else "border-collapse"} $(col.styles.ss.colClassNames) ${col.group.styles.ss.groupClassNames if col.group else ""} $(colError)">
$(text)
</$(tag)>
\@endif
\@endif
]]></style>
|
question.right-blank-legend Displays the table cell that is normally blank shown to the left of the question.top-legend.
|
<style name='question.right-blank-legend'> <![CDATA[
<$(tag) class="cell empty empty-right empty-$(pos) unused ${"desktop" if this.grouping.cols else "mobile"} border-collapse"></$(tag)>
]]></style>
|
|
question.group-3 Displays the row group heading containing the row group depth three text.
Note: The Survey Editor does not support sub-groups and will not display correct group depth.
|
<style name='question.group-3'> <![CDATA[
<$(tagRow) class="row row-group row-group-3 rowGroup group3">
<$(tagCell) scope="rowgroup" colspan="$(span)" id="$(this.label)_$(group.label)" class="cell nonempty legend row-legend row-legend-left row-legend-group $(levels) ${"desktop" if this.grouping.cols else "mobile"} border-collapse $(group.styles.ss.groupClassNames)">
$(text)
</$(tagCell)>
</$(tagRow)>
]]></style>
|
|
question.group-2 Displays the row group heading containing the row group depth 2 text.
Note: The Survey Editor does not support sub-groups and will not display correct group depth.
|
<style name='question.group-2'> <![CDATA[
<$(tagRow) class="row row-group row-group-2 rowGroup group2">
<$(tagCell) scope="rowgroup" colspan="$(span)" id="$(this.label)_$(group.label)" class="cell nonempty legend row-legend row-legend-left row-legend-group $(levels) ${"desktop" if this.grouping.cols else "mobile"} border-collapse $(group.styles.ss.groupClassNames)">
$(text)
</$(tagCell)>
</$(tagRow)>
]]></style>
|
question.group Displays the row group heading containing the row group text. |
<style name='question.group'> <![CDATA[
<$(tagRow) class="row row-group row-group-1 rowGroup group1">
<$(tagCell) scope="rowgroup" colspan="$(span)" id="$(this.label)_$(group.label)" class="cell nonempty legend row-legend row-legend-left row-legend-group $(levels) ${"desktop" if this.grouping.cols else "mobile"} ${"row-legend-group-space" if row.index!=0 and ec.haveRightLegend and ec.haveLeftLegend else "border-collapse"} $(group.styles.ss.groupClassNames)">
$(text)
</$(tagCell)>
</$(tagRow)>
]]></style>
|
question.row Displays the table row containing the row legend text and the input element. |
<style name='question.row'> <![CDATA[
\@if ec.simpleList
$(elements)
\@else
\@if this.styles.ss.rowHeight
<$(tag) class="row row-elements $(style) colCount-$(colCount)" style="height:${this.styles.ss.rowHeight};">
\@else
<$(tag) class="row row-elements $(style) colCount-$(colCount)">
\@endif
$(left)
$(elements)
$(right)
</$(tag)>
\@endif
]]></style>
|
question.col-legend-row Displays the table row used for repeated legends. |
<style name='question.col-legend-row'> <![CDATA[
\@if ec.simpleList
$(legends)
\@else
\@if this.styles.ss.colLegendHeight
<$(tag) class="row row-col-legends row-col-legends-middle ${"GtTenColumns " if ec.colCount > 10 else ""}colCount-$(colCount)" style="height:${this.styles.ss.colLegendHeight};">
\@else
<$(tag) class="row row-col-legends row-col-legends-middle ${"GtTenColumns " if ec.colCount > 10 else ""}colCount-$(colCount)">
\@endif
$(left)
$(legends)
$(right)
</$(tag)>
\@endif
]]></style>
|
question.col-legend-row-item Displays the table row column legends used for repeated legends. |
<style name='question.col-legend-row-item'> <![CDATA[
\@if ec.simpleList
<div class="legend col-legend col-legend-middle col-legend-basic $(levels) ${"desktop" if this.grouping.cols else "mobile"} border-collapse q-col-legend-row-item $(col.styles.ss.colClassNames) ${col.group.styles.ss.groupClassNames if col.group else ""} $(colError)">
$(text)
</div>
\@else
\@if this.styles.ss.colWidth
<$(tag) scope="col" class="cell nonempty legend col-legend col-legend-middle col-legend-basic $(levels) ${"desktop" if this.grouping.cols else "mobile"} border-collapse q-col-legend-row-item $(col.styles.ss.colClassNames) ${col.group.styles.ss.groupClassNames if col.group else ""} $(colError)" style="width:${this.styles.ss.colWidth}; min-width:${this.styles.ss.colWidth}">
$(text)
</$(tag)>
\@else
<$(tag) scope="col" class="cell nonempty legend col-legend col-legend-middle col-legend-basic $(levels) ${"desktop" if this.grouping.cols else "mobile"} border-collapse q-col-legend-row-item $(col.styles.ss.colClassNames) ${col.group.styles.ss.groupClassNames if col.group else ""} $(colError)">
$(text)
</$(tag)>
\@endif
\@endif
]]></style>
|
question.na.row Displays the noanswer response row. |
<style name='question.na.row'> <![CDATA[
\@if ec.simpleList
$(naElement)
\@else
<$(tagRow) class="row row-elements row-no-answer $(rowStyle)">
$(left)
<$(tagCell) colspan="$(colCount)" $(headers) class="cell nonempty element cell-no-answer ${"desktop" if this.grouping.cols else "mobile"} border-collapse $(extraClasses) $(col.styles.ss.colClassNames) $(row.styles.ss.rowClassNames) clickableCell" $(extra)>
$(naElement)
</$(tagCell)>
$(right)
</$(tagRow)>
\@endif
]]></style>
|
question.bottom-legend Displays the table row containing column legends used when colLegend is set to bottom. |
<style name='question.bottom-legend'> <![CDATA[
\@if ec.simpleList
$(legends)
\@else
\@if not simple
</tbody>
<tbody>
\@endif
\@if this.styles.ss.colLegendHeight
<$(tag) class="row row-col-legends row-col-legends-bottom ${"GtTenColumns " if ec.colCount > 10 else ""}colCount-$(colCount)" style="height:${this.styles.ss.colLegendHeight};">
\@else
<$(tag) class="row row-col-legends row-col-legends-bottom ${"GtTenColumns " if ec.colCount > 10 else ""}colCount-$(colCount)">
\@endif
$(left)
$(legends)
$(right)
</$(tag)>
\@endif
]]></style>
|
question.bottom-legend-item
|
<style name='question.bottom-legend-item'> <![CDATA[
\@if ec.simpleList
<div id="$(this.label)_$(col.label)" class="legend col-legend col-legend-bottom col-legend-basic $(levels) ${"desktop" if this.grouping.cols else "mobile"} border-collapse $(col.styles.ss.colClassNames) ${col.group.styles.ss.groupClassNames if col.group else ""} $(colError)">
$(text)
</div>
\@else
\@if this.styles.ss.colWidth
<$(tag) scope="col" id="$(this.label)_$(col.label)" class="cell nonempty legend col-legend col-legend-bottom col-legend-basic $(levels) ${"desktop" if this.grouping.cols else "mobile"} border-collapse $(col.styles.ss.colClassNames) ${col.group.styles.ss.groupClassNames if col.group else ""} $(colError)" style="width:${this.styles.ss.colWidth}; min-width:${this.styles.ss.colWidth}">
$(text)
</$(tag)>
\@else
<$(tag) scope="col" id="$(this.label)_$(col.label)" class="cell nonempty legend col-legend col-legend-bottom col-legend-basic $(levels) ${"desktop" if this.grouping.cols else "mobile"} border-collapse $(col.styles.ss.colClassNames) ${col.group.styles.ss.groupClassNames if col.group else ""} $(colError)">
$(text)
</$(tag)>
\@endif
\@endif
]]></style>
|
question.footer Displays a footer at the end of the question. |
<style name='question.footer'> <![CDATA[
${v2_insertStyle('survey.question.answers.end')}
</div>
<!-- /.question -->]]>
</style>
|
survey.question.answers.end Displays the end of the question-answer table. |
<style name='survey.question.answers.end'> <![CDATA[
\@if not ec.simpleList
\@if not simple
</tbody>
\@endif
</$(tag)>
\@endif
<!-- /.grid -->
</div>
<!-- /.answers -->]]>
</style>
|
question.after Blank by default. Can be used with wrap="ready" to add Javascript to after the question. |
<style name="question.after"> <![CDATA[
]]></style>
|
question.element Displays the answer cell containing the question type input element. |
<style name='question.element'> <![CDATA[
\@if ec.simpleList
<div class="element $(rowStyle) $(levels) $(extraClasses) ${col.group.styles.ss.groupClassNames if col.group else (row.group.styles.ss.groupClassNames if row.group else "")} $(col.styles.ss.colClassNames) $(row.styles.ss.rowClassNames) ${"clickableCell" if isClickable else ""}"$(extra)>
${v2_insertStyle('el.label.start')}
$(text)
${v2_insertStyle('el.label.end')}
</div>
\@else
<$(tag) $(headers) class="cell nonempty element $(levels) ${"desktop" if this.grouping.cols else "mobile"} border-collapse $(extraClasses) ${col.group.styles.ss.groupClassNames if col.group else (row.group.styles.ss.groupClassNames if row.group else "")} $(col.styles.ss.colClassNames) $(row.styles.ss.rowClassNames) ${"clickableCell" if isClickable else ""}"$(extra)>
${v2_insertStyle('el.label.start')}
$(text)
${v2_insertStyle('el.label.end')}
</$(tag)>
\@endif
]]></style>
|
question.left Displays the row legend text when rowLegend="default". |
<style name='question.left'> <![CDATA[
\@if this.styles.ss.legendColWidth
<$(tag) scope="row" class="cell nonempty legend row-legend row-legend-left ${"row-legend-both " if ec.haveRightLegend and ec.haveLeftLegend else ""}row-legend-basic ${"mobile-left-row-legend " if force else ""}$(levels) ${"desktop" if this.grouping.cols else "mobile"} ${"row-legend-both-space " if ec.haveRightLegend and ec.haveLeftLegend and (not row.group or not row.index==0) else "border-collapse "} $(row.styles.ss.rowClassNames)" style="width:${this.styles.ss.legendColWidth}; min-width:${this.styles.ss.legendColWidth}">
$(text)
</$(tag)>
\@else
<$(tag) scope="row" class="cell nonempty legend row-legend row-legend-left ${"row-legend-both " if ec.haveRightLegend and ec.haveLeftLegend else ""}row-legend-basic ${"mobile-left-row-legend " if force else ""}$(levels) ${"desktop" if this.grouping.cols else "mobile"} ${"row-legend-both-space " if ec.haveRightLegend and ec.haveLeftLegend and (row.group or not row.index==0) else "border-collapse "} $(row.styles.ss.rowClassNames)">
$(text)
</$(tag)>
\@endif
]]></style>
|
question.right Displays the row legend text when rowLegend="right" or the row has rightLegend text. |
<style name='question.right'> <![CDATA[
\@if this.styles.ss.legendColWidth
<$(tag) scope="row" class="cell nonempty legend row-legend row-legend-right ${"row-legend-both " if ec.haveRightLegend and ec.haveLeftLegend else ""}row-legend-basic $(levels) ${"desktop" if this.grouping.cols else "mobile"} border-collapse $(row.styles.ss.rowClassNames)" style="width:${this.styles.ss.legendColWidth}; min-width:${this.styles.ss.legendColWidth}">
$(text)
</$(tag)>
\@else
<$(tag) scope="row" class="cell nonempty legend row-legend row-legend-right ${"row-legend-both " if ec.haveRightLegend and ec.haveLeftLegend else ""}row-legend-basic $(levels) ${"desktop" if this.grouping.cols else "mobile"} border-collapse $(row.styles.ss.rowClassNames)">
$(text)
</$(tag)>
\@endif
]]></style>
|
el.radio The Single Select (radio) type input element. |
<style name='el.radio'> <![CDATA[
<input type="radio" name="$(name)" value="$(value)" id=$(id) $(checked) class="input radio" $(extra)/>
]]></style>
|
el.checkbox The Multi-Select (checkbox) type input element. |
<style name='el.checkbox'> <![CDATA[
<input type="checkbox" name="$(name)" id="$(id)" value="1" $(checked) class="${flags.CSS} input checkbox" $(extra)/>
]]></style>
|
el.select.header The start of the Select type element. |
<style name='el.select.header'> <![CDATA[
<select name="$(name)" id="$(id)" class="input dropdown" $(extra)>
]]></style>
|
el.select.default The Select type default element. |
<style name='el.select.default'> <![CDATA[
<option value="-1" $(selected)>@(select)</option>
]]></style>
|
el.select.element The Select type choice element. |
<style name='el.select.element'> <![CDATA[
<option value="$(value)" $(selected) class="${choice.styles.ss.choiceClassNames if ec.choice else ""}">$(text)</option>
]]></style>
|
el.select.footer The end of the Select type element. |
<style name='el.select.footer'> <![CDATA[
</select>
]]></style>
|
el.textarea The multi-line text input field used in <textarea> elements. |
<style name='el.textarea'> <![CDATA[
\@if row.styles.ss.preText or this.styles.ss.preText
${row.styles.ss.preText or this.styles.ss.preText or ""}
\@endif
<textarea name="$(name)" id="$(id)" rows="$(height)" cols="$(width)" wrap="virtual" class="input textarea" $(extra)>$(value)</textarea>
\@if row.styles.ss.postText or this.styles.ss.postText
${row.styles.ss.postText or this.styles.ss.postText or ""}
\@endif
]]></style>
|
el.noanswer The checkbox used for <noanswer> elements. |
<style name='el.noanswer'> <![CDATA[
\@if ec.simpleList
<div class="element">
\@endif
<span class="cell-sub-wrapper cell-legend-right"><span class="cell-input cell-sub-column">
<input type="checkbox" id="$(row.checkboxLabel)" name="$(row.checkboxLabel)" value="1" class="input no-answer checkbox" $(value|checkbox)/>
</span><span class="cell-text cell-sub-column"><label for="$(row.checkboxLabel)">$(label)</label></span></span>
\@if ec.simpleList
</div>
\@endif
]]></style>
|
el.text The open-ended input field used in text and number questions. |
<style name='el.text'> <![CDATA[
\@if row.styles.ss.preText or this.styles.ss.preText
<span class="pre-text">
${row.styles.ss.preText or this.styles.ss.preText or ""}
</span>
\@endif
\@if this.xmlTagName in ('number', 'float')
<input type="number" name="$(name)" id="$(id)" value="$(value)" size="$(size)" class="input text-input" $(extra)/>
\@else
<input type="text" name="$(name)" id="$(id)" value="$(value)" size="$(size)" class="input text-input" $(extra)/>
\@endif
\@if row.styles.ss.postText or this.styles.ss.postText
<span class="post-text">
${row.styles.ss.postText or this.styles.ss.postText or ""}
</span>
\@endif
]]></style>
|
el.open The open-ended input field used in open-ended rows. |
<style name='el.open'> <![CDATA[
<input type="text" name="$(name)" id="$(name)" value="$(value)" data-cell="$(cell.parent.label)_$(cell.label)" size="$(size)" class="input text-input oe oe-$(align)" $(extra)/>
$(scripts)
]]></style>
|
el.image The upload input field. Allows participants to upload an image, video, or any kind of file.
|
<style name='el.image'> <![CDATA[
\@if data
\@if this.displayInline
<img align='center' src='/survey/${gv.survey.path}/$(localFilename|q)'>
\@endif
<input type="hidden" name="old-$(name)" value="$(data)">
<br/><br/>
\@endif
<input type="file" name="$(name)" size="$(size)">]]></style>
|