Welcome to the LimeSurvey Community Forum

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

Client side / browser validation

  • AvengerDr
  • AvengerDr's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 11 months ago #198892 by AvengerDr
Client side / browser validation was created by AvengerDr
Hi,
apologies if this has a really simple answer. I thought that by simply setting a question to mandatory, the system would perform a first attempt to validate the page client side / in the browser itself. However, if I do not answer a mandatory question, it seems that the validation is performed only server side.

Is there any workaround for this? I think the usability would be improved by a great deal by avoiding unnecessary round trips.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months ago #198895 by tpartner
Replied by tpartner on topic Client side / browser validation
No, there is no core client side validation.

It could be added but the details of any script would depend on the question type, etc.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months ago - 3 years 11 months ago #198907 by DenisChenu
Replied by DenisChenu on topic Client side / browser validation
SkelVanilla can do it with option,

For mandatory and for all restriction system ! it use all html5 input attribute :). In general it work good.

See extensions.sondages.pro/themes-and-templ...html#Custom-validity

Test survey

But there are an issue whan validating client side : if browser broke : data is not saved. Then if you have a lot of question by page : better let's do it only via PHP

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.
Last edit: 3 years 11 months ago by DenisChenu.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose