Welcome to the LimeSurvey Community Forum

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

Can I custom edit the mandatory text and pop out message text in limesurvey ?

  • OngJunYew
  • OngJunYew's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 10 months ago #201773 by OngJunYew
Hi, I have two question in this topic.

First question: Can I edit the mandatory text "This question is mandatory" to my own custom text based on different question.

For an example, if respondent leave question 1 empty, it will show "Please select a rating". If respondent leave question 2 empty, it will show "Please select an answer".

Second question: Can I edit the pop out message based on question as well.

For an example, if respondent leave question 1 empty, it will show "Please select a rating". If respondent leave question 2 empty, it will show "Please select an answer" in the pop out message box.

Attachments:
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 10 months ago #201776 by DenisChenu
For mandatory part update : best is to didn't use included mandatory, but contruct your own one :

You have validation and validation tip for all question type now, thhe you can add in validation
!is_empty(self.NAOK)
and in tip : exactly what you want.

For the alert box : text was taken in LSvar.startPopups javascript array. Then there are surely some way to do this in plugin or survey theme.

More time to construct something, and can be hard.

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.
  • OngJunYew
  • OngJunYew's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 10 months ago #201783 by OngJunYew
For this validation !is_empty(self.NAOK) is there any other way to hide the tips before submited the survey and if the respondent really did not choose any answer only will show the tips
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 10 months ago #201788 by DenisChenu

OngJunYew wrote: For this validation !is_empty(self.NAOK) is there any other way to hide the tips before submited the survey and if the respondent really did not choose any answer only will show the tips

Yes,

But need some css adaptation, and clear waht you need

Do you want to show the string
1. Only if there are error, hide it if succed.
2. Only when try to submit, if there are error

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.
  • OngJunYew
  • OngJunYew's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 10 months ago #201789 by OngJunYew
Hi DenisChenu,

Yes I want to show the tips after the respondent did not choose any answer and click submit button.

Not to show the tips when the survey is running from the beginning.

Thank you.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 10 months ago #201790 by DenisChenu
Your LimeSurvey version ?

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.
  • OngJunYew
  • OngJunYew's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 10 months ago #201791 by OngJunYew
limesurvey3.22.18+200603
The topic has been locked.
More
3 years 5 months ago #208011 by ployrich
Has there been a solution to this? I am curious as well.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose