Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Deactivate popup messages (when mandatory questions have not been answered)

  • Christo
  • Christo's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 7 months ago - 9 years 7 months ago #111507 by Christo
Dear all,

Is it possible to deactive the popup messages (dialogue boxes) which appear when mandatory questions have not been answered?
I have read about the "$showpopups = -1" command. Can I add this command into the template.js, and if so, how should it look like please? (Ideally, I would like to change this setting only for one particular survey, if this is possible.)

Many thanks,
Christoph
Last edit: 9 years 7 months ago by Christo.
The topic has been locked.
More
9 years 4 weeks ago #117474 by jelo
You can add the setting in the file /application/config/config.php

Add 'showpopups'=>0 as shown in the code example:
Code:
// Use the following config variable to set modified optional settings copied from config-defaults.php
  'config'=>array(
  // debug: Set this to 1 if you are looking for errors. If you still get no errors after enabling this
  // then please check your error-logs - either in your hosting provider admin panel or in some /logs directory
  // on your webspace.
  // LimeSurvey developers: Set this to 2 to additionally display STRICT PHP error messages and get full access to standard templates
    'debug'=>0,
    'debugsql'=>0, // Set this to 1 to enanble sql logging, only active when debug = 2
         'showpopups'=>0
    )

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose