The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
Setup required fields - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: Setup required fields (/showthread.php?tid=983) |
Setup required fields - drakar - Dec 18th, 2010 Hi I wont to put Really Simple Validation (RSV): Standalone Version in my form. Can some expain hay to Add your form-specific validation code. var rules = []; // this stores all the validation rules rules.push("required,first_name,Please enter your first name."); rules.push("required,email,Please enter your email address."); rules.push("valid_email,email,Please enter a valid email address."); Where to put thet code in page (form) becouse I put end dont work!? Thanks. RE: Setup required fields - Ben - Dec 18th, 2010 Hi Drakar, Did you give this tutorial a read-through? http://docs.formtools.org/tutorials/js_validation/ Take a look at page 5: "The finished product": that shows an example of a working form with the validation in it. http://docs.formtools.org/tutorials/js_validation/?page=finished_product - Ben |