I have set up a form where people can enter one of three voucher codes to claim a prize.
I want the form to put up an error message tooltip if the incorrect code has been entered.
I found this forum post http://chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=26&t=21080&p=69665&hilit=validate+field#p69665 and http://chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=26&t=44281#p194412 and I've gone into the Wizard editor and set the field class to validate['confirm[fieldname]'] but I need it to check if it is equal to one of the three specific codes, not what is in a previous field.
I know I can create a hidden field, but I think the security would be pretty low and then I could only check one code.
How can I validate the field so that if the user puts in the correct code, it lets you submit the form, but if the user puts in the INCORRECT code it gives you a tool tip "Voucher Code Invalid"?
I want the form to put up an error message tooltip if the incorrect code has been entered.
I found this forum post http://chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=26&t=21080&p=69665&hilit=validate+field#p69665 and http://chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=26&t=44281#p194412 and I've gone into the Wizard editor and set the field class to validate['confirm[fieldname]'] but I need it to check if it is equal to one of the three specific codes, not what is in a previous field.
I know I can create a hidden field, but I think the security would be pretty low and then I could only check one code.
How can I validate the field so that if the user puts in the correct code, it lets you submit the form, but if the user puts in the INCORRECT code it gives you a tool tip "Voucher Code Invalid"?