Welcome to the LimeSurvey Community Forum

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

All validation error in pop up message

More
9 years 10 months ago #126581 by mellorine
Hi, I have two questions:

1. I want to ask if there's a way to add all validation and mandatory errors in the pop up message that comes up when you click the Next button?
2. I know this might be impossible but I want to ask anyway. Is it possible that, instead of a pop up message that includes all validation errors, the user is redirected to a page that mentions all these errors and then have a "go back" page to the question?
The topic has been locked.
More
9 years 10 months ago #126584 by holch
In the config file, you can switch off the javascript popup and the error messages will be shown directly on the page with the questions itself.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The topic has been locked.
More
9 years 10 months ago #126589 by mellorine
Hi holch, thanks for your reply although I'm trying to make the validation messages show up either in the pop up javascript window or a separate page. Definitely not within the question page. My client doesn't like inline messages :pinch:
The topic has been locked.
More
9 years 10 months ago #126594 by holch
Then I don't have any solution for you. I think there is nothing more annoying than the popup except for another page where you would have to go back to solve the problem. Respondents usually want the error directly in the question where the problem is.

I don't think the going to another page and coming back can be implemented, as Limesurvey already has trouble if you reload a page or go back with the back button.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The topic has been locked.
More
9 years 10 months ago #126599 by mellorine
I agree with you on it being annoying :(
I'm trying to make the pop up work. Can you let me know if I'm on the right track with this:

I'm thinking about turning $filterxsshtml off and just doing all the validation in javascript using the "source" mode of the question. I'm going to interrupt form submission and then add my own validation codes and do an alert. ??
The topic has been locked.
More
9 years 10 months ago #126620 by first
holch says

In the config file, you can switch off the javascript popup


Please let me know the path of this file in LS installation.

Survey Designer and Programmer
The topic has been locked.
More
9 years 10 months ago #126622 by mellorine
It's at application/config if I'm not mistaken.
The topic has been locked.
More
9 years 10 months ago #126623 by holch
Mellorine is correct. It is in:
Code:
/application/config/config.php

You want to search for the following code:
Code:
$config['showpopups']         =   0;                // Show popup messages if mandatory or conditional questions have not been answered correctly.
// 1=Show popup message, 0=Show message on page instead.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The topic has been locked.
More
9 years 10 months ago #126635 by DenisChenu

holch wrote: Mellorine is correct. It is in:

Code:
/application/config/config.php

You want to search for the following code:
Code:
$config['showpopups']         =   0;                // Show popup messages if mandatory or conditional questions have not been answered correctly.
// 1=Show popup message, 0=Show message on page instead.

No !!!

www.limesurvey.org/manual/Optional_setti...te_LimeSurvey_config
Code:
'config'=>array(
        'debug'=>0,
        'debugsql'=>0,
        'showpopups'=>0,
    )

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
More
9 years 10 months ago #126689 by holch
Thanks for informing. What does my code do then?

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The topic has been locked.
More
9 years 10 months ago #126693 by DenisChenu

holch wrote: Thanks for informing. What does my code do then?

I think you have a PHP error at all LS page.

You use the "old" 1.92 behaviour with your code.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
More
9 years 10 months ago #126702 by holch
OK, thanks for the information. But why is that in a config file in a clean LS 2.06 install then????

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The topic has been locked.
More
9 years 10 months ago #126711 by DenisChenu

holch wrote: OK, thanks for the information. But why is that in a config file in a clean LS 2.06 install then????

????? Never seen this , you mean config-default.php ?

If yes : it use the old system BUT it replaced when you do an update.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose