How to validate a multiple choice field in BizForms with a regular expression?

Customer care manager

Juraj Ondrus asked on December 14, 2009 09:53

How to validate a multiple choice field in BizForms with a regular expression?

Correct Answer

Juraj Ondrus answered on December 14, 2009 09:53

Kentico CMS is using ‘|’ to separate multiple choices. That means, if you have for example a quiz like form, with the correct answers 1 and 3, defined for example as 1;True 2;False 3;True you need to use the regular expression [1][|][3]. You don’t need to use at the start the combination ‘^(‘ and at end the combination ’)$’ - they are inserted automatically.

0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.