Welcome to the LimeSurvey Community Forum

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

All validation error in pop up message

  • mellorine
  • mellorine's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 6 months ago #126581 by mellorine
All validation error in pop up message was created 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.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 6 months ago #126584 by holch
Replied by holch on topic All validation error in pop up message
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.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • mellorine
  • mellorine's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 6 months ago #126589 by mellorine
Replied by mellorine on topic All validation error in pop up message
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.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 6 months ago #126594 by holch
Replied by holch on topic All validation error in pop up message
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.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • mellorine
  • mellorine's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 6 months ago #126599 by mellorine
Replied by mellorine on topic All validation error in pop up message
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
8 years 6 months ago #126620 by first
Replied by first on topic All validation error in pop up message
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.
  • mellorine
  • mellorine's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 6 months ago #126622 by mellorine
Replied by mellorine on topic All validation error in pop up message
It's at application/config if I'm not mistaken.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 6 months ago #126623 by holch
Replied by holch on topic All validation error in pop up message
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.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 6 months ago #126635 by DenisChenu
Replied by DenisChenu on topic All validation error in pop up message

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 !!!

manual.limesurvey.org/Optional_settings#...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 service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 6 months ago #126689 by holch
Replied by holch on topic All validation error in pop up message
Thanks for informing. What does my code do then?

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 6 months ago #126693 by DenisChenu
Replied by DenisChenu on topic All validation error in pop up message

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 service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 6 months ago #126702 by holch
Replied by holch on topic All validation error in pop up message
OK, thanks for the information. But why is that in a config file in a clean LS 2.06 install then????

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose