Wiki

Articles tagged with "cactiveform", sorted by viewsX
Displaying 1-5 of 5 result(s).

How to use single form to collect data for two or more models (CActiveForm and Ajax Validation edition)

Created 6 years ago by RusAlexHow-tos9 comments – viewed 57,598 times – ( +22 / -1 ) – version 1.1
With Yii you can use one CActiveForm for collecting data for two or more models with ajax validation and client validation.

A simple way to get Yii client-side form validation run when submitting by ajax

Created 4 years ago by nlacTutorials5 comments – viewed 49,852 times – ( +8 / -3 ) – version 1.1
A time ago i've met the issue that Yii doesn't run any client-side form validation when submitting the form by CHtml::ajaxSubmitButton. The small javascript below helps to fix it.

Yii Change Password with use of old and repeat password using bootstrap TbActiveForm

Created 3 years ago by Rohit SutharTutorials6 comments – viewed 31,240 times – ( +5 / -2 ) – version 1.1
In this wiki I will show how could use a TbActiveForm for changing the old password with help of old, new and repeat password features.

Avoiding duplicate script download when using CActiveForm on Ajax calls

Created 6 years ago by Antonio RamirezTutorials2 comments – viewed 20,611 times – ( +12 / -2 ) – version 1.1
Sometimes the active form we wish to use to edit/add a new element on our database is too small and we believe that is much better to use an AJAX'ed dialog/slide form rather than reloading the page to just display one or two fields.

Extending CActiveForm for some form display fixes and language tweaks

Created 7 years ago by TrejderTips0 comments – viewed 17,525 times – ( +5 / -1 ) – version 1.1
In this simple example I'll demonstrate how to extend CActiveForm class to overload some drawing functions to achieve some commonly used fixes in forms.