Welcome, Guest
Username: Password: Remember me

TOPIC: parameter $showpopups = -1 doesn't work

parameter $showpopups = -1 doesn't work 1 year 1 month ago #110950

  • ddrmoscow
  • ddrmoscow's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
Dear friends,

Tried to set parameter $showpopups = -1,
According to manual Group Survey Behavior :
Show popup messages if mandatory or conditional questions have not been answered correctly.
1=Show popup message (default),
0=Show message on page instead,
-1=Do not show the message at all (in this case, users will still see the question-specific tips indicating which questions must be answered).

setting to -1 equals to setting 0

current Version 2.05+ Build 140703 tried with defailt and basic templates, the result was the same

Is it about manual update or the bug?

Did anyone faced that problem and what was the solution except .errormandatory disabling?
The administrator has disabled public write access.

parameter $showpopups = -1 doesn't work 6 months 2 weeks ago #117455

  • jelo
  • jelo's Avatar
  • Online
  • Platinum Donor
  • Posts: 887
  • Thank you received: 93
  • Karma: 30
You're right.

It's still in the documentation:
manual.limesurvey.org/Optional_settings#Survey_Behavior

$showpopups: Show popup messages if mandatory or conditional questions have not been answered correctly. 1=Show popup message (default), 0=Show message on page instead, -1=Do not show the message at all (in this case, users will still see the question-specific tips indicating which questions must be answered).

I don't know if it is removed from the core.

The new style would be more like $config=0; But it won't change the behaviour as intended.
The administrator has disabled public write access.

parameter $showpopups = -1 doesn't work 6 months 2 weeks ago #117473

  • jelo
  • jelo's Avatar
  • Online
  • Platinum Donor
  • Posts: 887
  • Thank you received: 93
  • Karma: 30
You can activate that feature in the file application/config/config.php

Add 'showpopups'=>0 as shown in the code example:
// 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 administrator has disabled public write access.

parameter $showpopups = -1 doesn't work 6 months 1 week ago #117486

  • DenisChenu
  • DenisChenu's Avatar
  • Online
  • Moderator Lime
  • Posts: 7510
  • Thank you received: 1024
  • Karma: 297
ddrmoscow wrote:
setting to -1 equals to setting 0
Your rigth sure , since 2.00 and before i think.

I think errormandatory can be hidden by CSS.

Denis
The administrator has disabled public write access.

parameter $showpopups = -1 doesn't work 6 months 1 week ago #117489

  • jelo
  • jelo's Avatar
  • Online
  • Platinum Donor
  • Posts: 887
  • Thank you received: 93
  • Karma: 30
DenisChenu wrote:
ddrmoscow wrote:
setting to -1 equals to setting 0
Your rigth sure , since 2.00 and before i think.

I think errormandatory can be hidden by CSS.

Denis

I thought he isn't able to change from the default value at all.
"$showpopups = -1" in the config.php isn't working since the refactoring of the code.
I never used -1, but the default value with the popup is very demanding when filling out.
The administrator has disabled public write access.

parameter $showpopups = -1 doesn't work 6 months 1 week ago #117494

  • DenisChenu
  • DenisChenu's Avatar
  • Online
  • Moderator Lime
  • Posts: 7510
  • Thank you received: 1024
  • Karma: 297
jelo wrote:
....
If you want:

There are no difference between:
'config'=>array(
 
		'debug'=>0,
		'debugsql'=>0,
                'showpopups'=>0,
		)
And
'config'=>array(
 
		'debug'=>0,
		'debugsql'=>0,
                'showpopups'=>-1,
		)
Can be reported to our bug tracker.

Denis
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.145 seconds