Welcome to the LimeSurvey Community Forum

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

Modify default validation text

  • msalum1
  • msalum1's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
1 month 2 weeks ago - 1 month 2 weeks ago #268730 by msalum1
Modify default validation text was created by msalum1
Please help us help you and fill where relevant:
LimeSurvey version: LimeSurvey Community Edition Version 6.10.0+250106
Own server or LimeSurvey Cloud:  own (organization) 
Survey theme/template: Fruity TwentyThree ( extends_fruity_twentythree )
==================
Hello, 

I’m looking for suggestions to hide all the default validation tips. 

 Joffm suggested using CSS to hide the default validation text in this thread ( Question Validation Warning Messages Text Location ). However, I’m unsure about the exact code to use. I also tried using the "hide tip" option under the display settings, but the issue persisted. 

I want to replace all default validation text with: “Please enter a number for each area. The number must add up to a total of 12.” 

I attempted to follow the steps suggested by DennisChenu in this thread ( Modifying Validation/Error Text Alerts/Helper Text ), but I was unsuccessful. Here are the steps I followed: 

1. Hide the default validation text in custom.css: .question-container.numeric .ls-em-tip.em_default { display: none; } 
2. Set the validation condition to:  sum(self.NAOK) == 12 
3. Add the custom validation message in the "Question Valid Tip" container: “Please enter a number for each area. The number must add up to a total of 12.” 

I’m also attaching a sample for reference. I would greatly appreciate your help in resolving this issue.
-Marlo 
 
Last edit: 1 month 2 weeks ago by msalum1.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 month 2 weeks ago #268731 by Joffm
Replied by Joffm on topic Modify default validation text
Hi,
when I run this question I see this
 
Well, all these - blue - messages  are forced by your settings
 
 

All are not necessary because you use your own validation "sum(self.NAOK)==12"
With only this you see
 

Of course you get this initial error (the sum is not equal 12)
 

Another option:
Enter your text into the help text
Hide the "question-valid-container"
Code:
<style type="text/css">
.question-valid-container {
  position: relative;
  display: none;
}
</style>
set "max. sum value -> 12", "min. sum value -> 12"
to get this
 

You see I added a "linefeed" into the message.

Joffm

BTW:
If there are further conditions or settings in your question, either remove them or provide this question, too.
I refer to thre array filter

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

  • msalum1
  • msalum1's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
1 month 2 weeks ago #268749 by msalum1
Replied by msalum1 on topic Modify default validation text
Thanks, Joffm!  I'll do your first suggestion. 
 

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose