parameter $showpopups = -1 doesn't work

More
3 years 2 months ago #110950 by ddrmoscow
ddrmoscow created the topic: parameter $showpopups = -1 doesn't work
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?

Please Log in to join the conversation.

More
2 years 7 months ago #117455 by jelo
jelo replied the topic: parameter $showpopups = -1 doesn't work
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.

Please Log in to join the conversation.

More
2 years 7 months ago #117473 by jelo
jelo replied the topic: parameter $showpopups = -1 doesn't work
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
		)

Please Log in to join the conversation.

More
2 years 7 months ago #117486 by DenisChenu
DenisChenu replied the topic: parameter $showpopups = -1 doesn't work

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

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
2 years 7 months ago #117489 by jelo
jelo replied the topic: parameter $showpopups = -1 doesn't work

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.

Please Log in to join the conversation.

More
2 years 7 months ago #117494 by DenisChenu
DenisChenu replied the topic: parameter $showpopups = -1 doesn't work

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

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now