- Posts: 5
- Thank you received: 1
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
- Topic Author
- Offline
- New Member
Less
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?
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11639
- Thank you received: 2737
8 years 6 months ago #126584
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 1
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11639
- Thank you received: 2737
8 years 6 months ago #126594
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
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 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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 1
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. ??
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.
- first
- Offline
- Elite Member
Less
More
- Posts: 227
- Thank you received: 36
8 years 6 months ago #126620
by first
Survey Designer and Programmer
Replied by first on topic All validation error in pop up message
holch says
Please let me know the path of this file in LS installation.
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 1
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11639
- Thank you received: 2737
8 years 6 months ago #126623
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic All validation error in pop up message
Mellorine is correct. It is in:
You want to search for the following code:
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
8 years 6 months ago #126635
by DenisChenu
manual.limesurvey.org/Optional_settings#...te_LimeSurvey_config
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.
Replied by DenisChenu on topic All validation error in pop up message
No !!!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.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11639
- Thank you received: 2737
8 years 6 months ago #126689
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
8 years 6 months ago #126693
by DenisChenu
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.
Replied by DenisChenu on topic All validation error in pop up message
I think you have a PHP error at all LS page.holch wrote: Thanks for informing. What does my code do then?
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11639
- Thank you received: 2737
8 years 6 months ago #126702
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
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.