Hi, I am stuck in somewhere in validations, Actually I have a form which is valid if any of the given fields are filled but I can't find any solution for this as validatesPresenceOf doesn't provide option for adding or conditions...
Hope you understand my query, Sorry for my bad English
Thanks
Hi spykid.
Not sure to undertand what functionalities you miss. Maybe 'validatesFormatOf' function is what you need ?
Please :
Regards.
Actually I want that if any single value in the form is filled then the form is valid but it applies on either fields....
When I try to make if..else clause then it fails on OR conditions also... such as
if(validatesPresenceOf('name') || validatesPresenceOf(email))
Thanks
He meant 'by hand' like if (isset($this->name) || isset($this->email)) return true; etcetera
1 to 6 of 6