[[option()]]
 

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
Last revisionBoth sides next revision
en:create:functions:option [20.12.2014 18:34] – [Layout] alexander.ritteren:create:functions:option [05.09.2020 13:03] sophia.schauer
Line 9: Line 9:
     * '''yes''' -- Display progress bar (if it was disabled for the questionnaire)     * '''yes''' -- Display progress bar (if it was disabled for the questionnaire)
     * ''0'' to ''100'' -- Display this percentage of progress     * ''0'' to ''100'' -- Display this percentage of progress
 +  * '''progress.last''' -- Define on which side the progress bar reaches 100% (default: "end")
 +    * Text (string) -- questionnaire page ([[:en:glossary#page identification|page identification]]) on which 100% are reached
   * '''nextbutton''' -- "Next" button   * '''nextbutton''' -- "Next" button
     * Text (string) -- Display this text on the Next button     * Text (string) -- Display this text on the Next button
Line 26: Line 28:
     * ''true'' -- Hide information, because the questionnaire is expected to be resumed here      * ''true'' -- Hide information, because the questionnaire is expected to be resumed here 
     * ''false'' -- Display information (default setting)     * ''false'' -- Display information (default setting)
 +  * '''warn.leave'' -- Show/hide warning when respondent closes browser window \\ This setting corresponds to the selection option **Compose Questionaire** -> //Settings// -> "Show a warning if browser back button is used or window is closed"
 +    * ''true'' -- Show hint (if supported by browser)
 +    * ''false'' -- Deactivate hint
 +  * '''probing''' -- Remove the current page from the back history\\ If you use an additional page to check for missing answers and allow a back button at the same time, you can use this setting to specify that the respondent skips the additional page on "back".
 +  * '''part''' -- Set the start of a new questionnaire section for the print preview, s. ''[[:/en:create:functions:answersprint]]''
 +    * Text (string) -- Any designation of the section
 +  * '''questionNumber''' -- Continue the automatic numbering of questions with the specified number.
 +    * number (integer) -- Number ≥ 1
 +
  
 **Note:** The command ''option()'' is only suitable for changing the labels of buttons on __individual__ pages. If you want to change the labeling in general, define then in **Text Elements and Labels** ([[:en:create:stuff#weiter-knopf_beschriften|Instructions for Common Jobs]]). **Note:** The command ''option()'' is only suitable for changing the labels of buttons on __individual__ pages. If you want to change the labeling in general, define then in **Text Elements and Labels** ([[:en:create:stuff#weiter-knopf_beschriften|Instructions for Common Jobs]]).
Line 66: Line 77:
 ===== Layout ===== ===== Layout =====
  
-Should extensive stimulus be displayed in the questionnaire, reflecting a website? The "normal" structure of the questionnaire is probably too narrow to do this and has a detrimental effect on the appearance. +Should extensive stimulus be displayed in the questionnaire, reflecting a website? The "normal" structure of the questionnaire is probably too narrow to do this and interferes with the appearance. 
  
-Open **Questionnaire Layout** in the menu. If you have not yet activated a layout, first of all activate the "SoSci Survey Standard" layout in //Layout Templates// (so the questionnaire carries on in the default layout). Afterwards, activate the "SoSci Stimulus Presenter" layout -- it is given the ID "presenter"+Open **Questionnaire Layout** in the menu. If you have not yet activated a layout, activate the "SoSci Survey Standard" layout first of all in //Layout Templates// (so the questionnaire appears in the default layout). Afterwards, activate the "SoSci Stimulus Presenter" layout -- this is given the ID "presenter"
  
-Use the following PHP code on the page with the stimulus on it in order to let the structure of the questionnaire disappear:+Use the following PHP code on the page with the stimulus on it, which allows the structure of the questionnaire to disappear:
  
 <code php> <code php>
 option('layout', 'presenter'); option('layout', 'presenter');
 </code> </code>
en/create/functions/option.txt · Last modified: 05.09.2020 13:06 by sophia.schauer
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki