RE: Validate Dynamic Forms

2014-05-22 Thread Advantage+
s of the fields …… and so on From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of Stephen S Sent: Thursday, May 22, 2014 4:56 PM To: cake-php@googlegroups.com Subject: Re: Validate Dynamic Forms You can add and remove validation rules on the fly before you check

Re: Validate Dynamic Forms

2014-05-22 Thread Stephen S
You can add and remove validation rules on the fly before you check if the form is valid. http://book.cakephp.org/2.0/en/models/data-validation.html#dynamically-change-validation-rules On 22 May 2014 19:50, Advantage+ wrote: > I am building a questionnaire where the user can add questions to a

Validate Dynamic Forms

2014-05-22 Thread Advantage+
I am building a questionnaire where the user can add questions to a form (either yes or no or text answer response) So the Question has id, quiz_id, question, type (text or true / false), But how would you validate this? In the view I simply do a foreach ($questions as $question){ echo $t

Re: Dynamic forms

2010-12-20 Thread cricket
2010/12/20 Andrés Manikis : > > I do need different fields for passport and National document. For > example, the passport has an expiration date whereas the national > document has not. So I think I should extend the Credential model. > How could I do that? I know how to do it at the PHP side but

Re: Dynamic forms

2010-12-20 Thread Andrés Manikis
On 18 dic, 16:46, cricket wrote: > On Fri, Dec 17, 2010 at 11:20 PM, Andr?s Manikis > > wrote: > > Hello. > > I have the following questions. > > > Let's suppose I have, say, a person model which has an id, a name and a > > boolean that tells whether this person is native from a specific countr

Re: Dynamic forms

2010-12-18 Thread cricket
On Fri, Dec 17, 2010 at 11:20 PM, Andr?s Manikis wrote: > Hello. > I have the following questions. > > Let's suppose I have, say, a person model which has an id, a name and a > boolean that tells whether this person is native from a specific country or > not (for example, native from Argentina or

Dynamic forms

2010-12-18 Thread Andr?s Manikis
Hello. I have the following questions. Let's suppose I have, say, a person model which has an id, a name and a boolean that tells whether this person is native from a specific country or not (for example, native from Argentina or not). In the case of being native, he has a national document, ot