Home › Forums › Quform WordPress › how to make line take rule from a list
- This topic has 4 replies, 3 voices, and was last updated 7 years, 6 months ago by Ally.
- AuthorPosts
- November 2, 2016 at 4:07 pm #20225sa4351adParticipant
Hi there ,
I want to make a survey and I made a form, and the first line is to but the ID number ..
but
my issue is : I dont want any one out of my group to do the survey ,, i have a list of the IDs that I want theme to make the survey ,, so if any one but his id and the id not from the list , automatically hide the send button and dont let him to do the surveythe survey will be in private page but I fried some one elase send it to other , so that I want to do this
November 2, 2016 at 9:07 pm #20232supportModeratorHi,
How are you ID’s built ? You could use a validator on the ID’s field and mark this field as required so that they need a valid ID to send the form. In that case, you could use a different Regex for valid ID and invalid ID, or different lenght, or anything else in the validator section.
Regards,
Félix
November 3, 2016 at 3:12 pm #20242sa4351adParticipantNot just IDs , may i wAnt to use a code , for example , i want to send sms with the survey link to list , and i will generate a code for each one , if any one lose his code he cant pist
November 3, 2016 at 4:44 pm #20245supportModeratorHi,
When generating the code, use a different format for the valid an non-valid ones so you can easily use a validator on the field.
Example:
-All the valid code contains 8 digits
-Invalid code contains 5 digitsYou apply a validator to the field saying that it needs to contain 8 digit to be valid (but the error must just say that it’s a wrong code). Than, you say that this field is required to send the form.
I suggest you use a validator more sophisticated (Regex) so people can find out.
If you don’t want to use this, you can always write a little javascript for confirming that the value is equal to one of the ID’s in your list but you’ll always have to update the list.
Regards.
Félix
November 7, 2016 at 4:14 pm #20258AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- AuthorPosts
- You must be logged in to reply to this topic.