Welcome to the LimeSurvey Community Forum

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

Need help validating an input

  • nevergonna1
  • nevergonna1's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 8 months ago #241005 by nevergonna1
Need help validating an input was created by nevergonna1
Please help us help you and fill where relevant:
Your LimeSurvey version: Version 5.6.8+230227
Own server or LimeSurvey hosting: own server
Survey theme/template: default
==================
I'm trying to verify my users email address before letting them continue the survey.  They have a token (their user ID) and i've added their address as Attribute_2.  Currently if they input the wrong address it just allows them to continue but does not display any questions.  I'd like to be able to check or verify the address before allowing them to continue at all.  Is that possible? 

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
1 year 8 months ago #241045 by DenisChenu
Replied by DenisChenu on topic Need help validating an input
You can use
Code:
self.NAOK == TOKEN:ATTRIBUTE_2
in Question validation equation but then : the email are shown in the javascript code … (user can check source)

Another solution with quota maybe ?
1. Add a Yes/No question in a second group, set this question hidden
2. Set default value to Y with {if(Q00.NAOK == TOKEN:ATTRIBUTE_2,"Y","N")}
3. Set a quota to this question at 0 for N

 

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.

Please Log in to join the conversation.

  • nevergonna1
  • nevergonna1's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 8 months ago #241074 by nevergonna1
Replied by nevergonna1 on topic Need help validating an input
Perfect! That's exactly what I needed. I was really overcomplicating things.

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose