User Tools

Site Tools


formselects

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
formselects [2023/04/19 12:57] – [QuestionText Select HTML] adminformselects [2025/02/06 11:48] (current) – [Survey Header] admin
Line 8: Line 8:
   * Supports multi-selects   * Supports multi-selects
   * Supports back button - even when dynamic options are created   * Supports back button - even when dynamic options are created
 +  * Supports default choices
   * Translation friendly   * Translation friendly
 +  * Supports "New Survey Experience" (aka Simple layout)!
  
 Here is a quick video demonstration:\\ Here is a quick video demonstration:\\
 {{ ::formSelects.mp4?770 |formSelects Demonstration}} {{ ::formSelects.mp4?770 |formSelects Demonstration}}
  
-This function is available for a reasonable fee. Contact **[[https://community.qualtrics.com/XMcommunity/messages/add/TomG|TomG]]** on the Qualtrics Community to learn more.+This function is available for a reasonable fee. Contact **[[https://community.qualtrics.com/inbox/conversation?with=373|TomG]]** on the Qualtrics Community to learn more.
 ===== Set-up Instructions ===== ===== Set-up Instructions =====
 ==== Survey Header ==== ==== Survey Header ====
Line 21: Line 23:
 <link href="https://cdn.jsdelivr.net/npm/select2@4.0.13/dist/css/select2.min.css" rel="stylesheet" /> <link href="https://cdn.jsdelivr.net/npm/select2@4.0.13/dist/css/select2.min.css" rel="stylesheet" />
 <script src="https://cdn.jsdelivr.net/npm/select2@4.0.13/dist/js/select2.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/select2@4.0.13/dist/js/select2.min.js"></script>
 +</code>
 +=== Add jQuery (only if using New Survey Experience) ===
 +<code>
 +<script src="https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.min.js">
 </code> </code>
 === Add formSelects Function === === Add formSelects Function ===
Line 55: Line 61:
 ==== Choice Label HTML ==== ==== Choice Label HTML ====
 === data-select === === data-select ===
-To convert a field to a select put the choice label inside a ''<span>'' tag with the attribute ''data-select=//classname//'' where classname matches the class of a select tag in the **[[formselects#questiontext_select_html|QuestionText Select HTML]]**. For example:+To convert a field to a select put the choice label inside a ''<span>'' tag with the attribute ''data-select=//%%"classname"%%//'' where classname matches the class of a select tag in the **[[formselects#questiontext_select_html|QuestionText Select HTML]]**. For example:
 <code> <code>
 <span data-select="states">State</span> <span data-select="states">State</span>
formselects.1681923424.txt.gz · Last modified: by admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki