[[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
en:create:functions:option [20.12.2014 18:40] – [Layout] alexander.ritteren:create:functions:option [05.09.2020 13:06] (current) – [Buttons in the Questionnaire] 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 55: Line 66:
 <code php> <code php>
 option('backbutton', false); option('backbutton', false);
 +</code>
 +
 +If back buttons in the questionnaire are generally disabled, they can be shown again for individual pages:
 +
 +<code php>
 +option('backbutton', true);
 </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