- Posts: 7
- Thank you received: 1
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Basic question: Validate that someone types "I AGREE" in a text box
- ranman22
- Topic Author
- Offline
- New Member
Less
More
9 years 1 month ago #117077
by ranman22
Basic question: Validate that someone types "I AGREE" in a text box was created by ranman22
Ok, I'm sure this is the most basic question ever. I have made a good-faith effort to find an answer, but it eludes me from every manual and Google search.
I have a question (Q5) that is a "Short Free Text" box. I need to have users type in the words "I AGREE" exactly (I don't care if it's all uppercase, all lowercase, or mixed -- as long as the basic phrase "i agree" is there). What on earth do I put in the "Validation" box to make this happen? Everything I have tried fails with a pop-up warning ("One or more questions have not been answered in a valid manner. You cannot proceed until these answer are valid.").
Thank you in advance for any help and for easing my frustration.
-Randy
I have a question (Q5) that is a "Short Free Text" box. I need to have users type in the words "I AGREE" exactly (I don't care if it's all uppercase, all lowercase, or mixed -- as long as the basic phrase "i agree" is there). What on earth do I put in the "Validation" box to make this happen? Everything I have tried fails with a pop-up warning ("One or more questions have not been answered in a valid manner. You cannot proceed until these answer are valid.").
Thank you in advance for any help and for easing my frustration.
-Randy
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13907
- Thank you received: 2546
9 years 1 month ago #117079
by DenisChenu
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 Basic question: Validate that someone types "I AGREE" in a text box
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.
- ranman22
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 1
9 years 1 month ago #117124
by ranman22
Replied by ranman22 on topic Basic question: Validate that someone types "I AGREE" in a text box
Thank you, Denis -- I appreciate your response.
I tried this, but it doesn't seem to work. I even created a brand new one-question survey using only this question to make sure it wasn't something else, and I still get the same error.
I have read the piece of the manual you posted the link for as well, and it isn't helping. Sorry if I'm being a dunce here. I just have this one piece to do and this project will be done. The fact that it seems like such a simple thing is what is frustrating me so much.
Any other thoughts?
Thank you.
-Randy
I tried this, but it doesn't seem to work. I even created a brand new one-question survey using only this question to make sure it wasn't something else, and I still get the same error.
I have read the piece of the manual you posted the link for as well, and it isn't helping. Sorry if I'm being a dunce here. I just have this one piece to do and this project will be done. The fact that it seems like such a simple thing is what is frustrating me so much.
Any other thoughts?
Thank you.
-Randy
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11746
- Thank you received: 2750
9 years 1 month ago #117125
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 Basic question: Validate that someone types "I AGREE" in a text box
Well, you need to help at least a little bit.
What exactly doesn't work? What did you exactly do? What was the result?
What version of Limesurvey are you using?
What exactly doesn't work? What did you exactly do? What was the result?
What version of Limesurvey are you using?
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.
- ranman22
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 1
9 years 1 month ago #117127
by ranman22
Replied by ranman22 on topic Basic question: Validate that someone types "I AGREE" in a text box
I am using "Version 2.05+ Build 141229".
Question Code: Q1
Type: Short Free Text
Mandatory: Yes
I need the user to simply type "I AGREE" in the box, and not be allowed to go on unless that is the case. I have tried many different things in the "Validation" field, all of them being guesses as to what is actually needed. I've tried things such as:
Q1 = "I AGREE"
Q1 = 'I AGREE'
Q1 == "I AGREE"
Q1 == 'I AGREE'
(Q1 == "I AGREE")
And pretty much every variant of it. No matter what I try in the validation field, I get a pop-up when I try out the survey and type "I AGREE" and press the submit button. The error says "One or more questions have not been answered in a valid manner. You cannot proceed until these answer are valid.".
This seems like it should be a simple thing, but I'm losing hair over it. Help! And thank you!
-Randy
Question Code: Q1
Type: Short Free Text
Mandatory: Yes
I need the user to simply type "I AGREE" in the box, and not be allowed to go on unless that is the case. I have tried many different things in the "Validation" field, all of them being guesses as to what is actually needed. I've tried things such as:
Q1 = "I AGREE"
Q1 = 'I AGREE'
Q1 == "I AGREE"
Q1 == 'I AGREE'
(Q1 == "I AGREE")
And pretty much every variant of it. No matter what I try in the validation field, I get a pop-up when I try out the survey and type "I AGREE" and press the submit button. The error says "One or more questions have not been answered in a valid manner. You cannot proceed until these answer are valid.".
This seems like it should be a simple thing, but I'm losing hair over it. Help! And thank you!
-Randy
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13907
- Thank you received: 2546
9 years 1 month ago #117128
by DenisChenu
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 Basic question: Validate that someone types "I AGREE" in a text box
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.
- ranman22
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 1
9 years 1 month ago - 9 years 1 month ago #117129
by ranman22
Replied by ranman22 on topic Basic question: Validate that someone types "I AGREE" in a text box
Hmmm. I just tried that and it didn't work either. Screenshots attached.
Attachments:
Last edit: 9 years 1 month ago by ranman22. Reason: typo
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13907
- Thank you received: 2546
9 years 1 month ago #117141
by DenisChenu
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 Basic question: Validate that someone types "I AGREE" in a text box
Whole question validation equation (em_validation_q) not validation.
limesurvey.sondages.pro/232424.html?newtest=Y
limesurvey.sondages.pro/232424.html?newtest=Y
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 following user(s) said Thank You: Ben_V, ranman22
The topic has been locked.
- ranman22
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 1
9 years 1 month ago #117158
by ranman22
Replied by ranman22 on topic Basic question: Validate that someone types "I AGREE" in a text box
That did it! I totally missed that you were referring to "Question Validation Equation" -- I kept using the "Validation" field. Thank you VERY much!
-Randy
-Randy
The topic has been locked.