questionoptions
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| questionoptions [2025/02/04 11:25] – gloria | questionoptions [2025/03/10 06:14] (current) – gloria | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ^ # | + | ====== Introduction: |
| - | | 1 | **id** | + | |
| - | | 2 | **qdetailid** | + | This table outlines the detailed structure of the **QuestionnaireDetailsOptions** table, which stores information about the options (answer choices) associated with each question in a questionnaire. Each record corresponds to an option with specific settings, such as display order, graph order, open answer configuration, |
| - | | 3 | **optionorder** | + | |
| - | | 4 | **graphorder** | + | The table is linked to the **QuestionnaireDetails** table via the **qdetailid** column and plays a crucial role in defining the behavior of options in the survey. |
| - | | 5 | **optiontype** | + | |
| - | | 6 | **openanswer** | + | Below is the list of fields in the **QuestionnaireDetailsOptions** table along with their descriptions, |
| - | | 7 | **openanswerforopt** | + | |
| - | | 8 | **graphcolor** | + | ^ **Sr. No.** ^ **Name** |
| - | | 9 | **textcolor** | + | | 1 |
| - | | 10 | **apptextcolor** | + | | 2 |
| - | | 11 | **emotioncolors** | + | | 3 |
| - | | 12 | **icon** | + | | 4 |
| - | | 13 | **enlargeicon** | + | | 5 |
| - | | 14 | **iconsize** | + | | 6 |
| - | | 15 | **status** | + | | 7 |
| - | | 16 | **redirecttoinfo** | + | | 8 |
| - | | 17 | **optionquery** | + | | 9 |
| - | | 18 | **updateparams** | + | | 10 | **apptextcolor** |
| - | | 19 | **selectparams** | + | | 11 | **emotioncolors** |
| - | | 20 | **optiondisplayparamcond** | text | condition whether | + | | 12 | **icon** |
| - | | 21 | **excludeotheropts** | + | | 13 | **enlargeicon** |
| - | | 22 | **hideinreports** | + | | 14 | **iconsize** |
| - | | 23 | **randomorder** | + | | 15 | **status** |
| - | | 24 | **hideinbubblegraph** | + | | 16 | **redirecttoinfo** |
| - | | 25 | **optionscore** | + | | 17 | **optionquery** |
| + | | 18 | **updateparams** | ||
| + | | 19 | **selectparams** | ||
| + | | 20 | **optiondisplayparamcond** | text | ||
| + | | 21 | **excludeotheropts** | ||
| + | | 22 | **hideinreports** | ||
| + | | 23 | **randomorder** | ||
| + | | 24 | **hideinbubblegraph** | ||
| + | | 25 | **optionscore** | ||
| + | |||
| + | ====== Explanation of Special Columns ====== | ||
| + | |||
| + | 1. **openanswer (Column 6)** - This column is crucial for configuring open-ended answers in options. Below are its possible values: | ||
| + | **0** = No open answer box. | ||
| + | **1** = Show open answer box next to option. | ||
| + | **2** = Show open answer box with a long text area. | ||
| + | **3** = Open answer appears only when the option is selected. | ||
| + | **4** = Email input type. | ||
| + | **5** = Phone input type. | ||
| + | **6** = Postal code input type. | ||
| + | **7** = Textbox appears without radio or checkbox. | ||
| + | **8** = Date picker input. | ||
| + | **9** = OTP (One-Time Password) input for verification. | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | 2. **optiondisplayparamcond (Column 20)** - This column controls the display of options based on previous answers. For example: | ||
| + | if Q1=2 then show Option A, else hide Option A | ||
| + | |||
| + | 3. **excludeotheropts (Column 21)** - If enabled (value = 1), selecting this option will disable/ | ||
| + | |||
| + | 4. **emotioncolors (Column 11)** - For emotion-based questions, this column stores multiple color codes separated by **"^||^"** for each emotion option. | ||
| + | |||
| + | 5. **optionquery (Column 17)** - This allows dynamic loading of options from external tables based on user input. Example query: | ||
| + | |||
| + | SELECT optiontext FROM fw_options WHERE questionid=1; | ||
questionoptions.1738668345.txt.gz · Last modified: 2025/02/04 11:25 by gloria
