Articles tagged with "form validation"X
Displaying 1-5 of 5 result(s).

How To: Custom Client Validation On Checkbox Toggle and Optional Input Field

Created about a year ago by Wade ShulerHow-tos0 comments – viewed 7,259 times – ( -1 ) – version 2.0
I just chased my tail around for a bit today. I got lost with setting the status of all inputs, and banging my head on why the "validate" function just wasn't working.

Understanding Scenarios

Created 6 years ago by Luke JurgsTutorials12 comments – viewed 137,364 times – ( +31 / -1 ) – version 1.1
Scenarios are an extremely useful tool for separating validation tasks on any class you use derived from CModel. In this tutorial we will use CActiveRecord.

File uploads in CForm (Form builder)

Created 6 years ago by Luke JurgsHow-tos2 comments – viewed 44,289 times – ( +12 / -1 ) – version 1.1
While there is a reasonable amount of documentation regarding CForm (form builder) and file uploads seperately, there really is not any coverage of both in combination.

Using the jamselect widget with min and max values

Created 7 years ago by got 2 doodleHow-tos0 comments – viewed 11,408 times – ( +2 / -1 ) – version 1.1
I needed to have users select from a list of keywords, in this example they must select at least two keywords but they cannot select more than six.

Reference: Model rules validation

Created 8 years ago by krillzipHow-tos7 comments – viewed 763,312 times – ( +128 / -1 ) – version 1.1
This is a reference to be used for Model rule validation and is compiled from the Yii documentation and code. The purpose is to have all the information gathered in one place instead of scattered. This reference is not an intro. See The Definitive Guide to Yii, Declaring Validation Rules for a tutorial.