This topic is locked

Validation using radio button

12/26/2011 10:08:19 PM
PHPRunner General questions
K
kiko author

I have a radio button that has a set of fiels of 'Y' and 'N'. I want to set a validation that if I pick Y i can only input any amount and if N i can input 1-50.
Thanks in advance. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=18598&image=1&table=forumtopics' class='bbc_emoticon' alt=':D' />

C
cgphp 12/27/2011

You have to add your own validation plugins. Check this article: http://xlinesoft.com/phprunner/docs/validation_types.htm

L
laonian 12/28/2011



You have to add your own validation plugins. Check this article: http://xlinesoft.com...ation_types.htm


Thanks for the guide link. My question is: is it possible to have a real-time conditional/dependent validation function or plugin in kiko's case?

C
cgphp 12/29/2011

Yes, it's possible. Using the addValidation and removeValidation constructs you can accomplish the task. More info here: http://xlinesoft.com/phprunner/docs/ctrl_addvalidation.htm