Wiki

Articles tagged with "forms", sorted by date (updated)X
Displaying 1-10 of 11 result(s).

Dynamic Tabular Inputs

Updated 3 days ago by ezekielnoobTutorials1 comment – viewed 755 times – ( +3 ) – version all
On my experience in Yii IRC, once in a while there would be someone that asks about how to create pages that handles 1 main model and its submodel and saving the changes in a single click. i wrote the example application on top of Yii2's basic application template that you can download here (i suggest you also run the acceptance test to see it in action): Dynamic Tabular Form App

How to implement form events

Updated 4 months ago by Antonio RamirezHow-tos4 comments – viewed 4,106 times – ( +6 ) – version 2.0
You have that, when a product is on development they can change its API anytime. This change is quite important though, its related on how to set the events of your form, for example, the useful beforeSubmit.
tags: yii2, forms, how to

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

Updated 6 months ago by nlacTutorials5 comments – viewed 33,894 times – ( +7 / -2 ) – 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.

MongoDb's embedded documents mapping for ActiveRecord in Yii2

Updated 11 months ago by CeBeHow-tos1 comment – viewed 5,559 times – ( +5 ) – version 2.0
You are working with MongoDb and you have embedded documents in your collection that you want to easily map in your Model for CRUD operations.

Drop down list with enum values for column of type ENUM >+> incorporate into giix

Updated about a year ago by nsandenHow-tos3 comments – viewed 27,020 times – ( +14 ) – version 1.1
Let's say our table 'mug' has a column named 'color' of the type ENUM('red','green','blue'). We want to replace the textfield for the attribute color in the create and update forms of a 'mug' with a drop down list, which has the enum values as options. The main code was contributed by zaccaria in the forum (see this post).

Understanding "Safe" Validation Rules

Updated 2 years ago by GismoFAQs11 comments – viewed 84,083 times – ( +93 / -1 ) – version 1.1
A common source of confusion among new Yii users is how the 'safe' validator works, how it works with other validators, and why it's necessary in the first place. This article means to clear up this confusion, as well as explain the notion of Massive Assignment.

XUpload Workflow

Updated 2 years ago by AsgarothTutorials32 comments – viewed 55,526 times – ( +34 ) – version 1.1
This wiki describes a more complex workflow using the XUpload widget

MVC primer and 5 minute form walkthrough

Updated 2 years ago by rix.rix.Tutorials0 comments – viewed 16,370 times – ( +8 ) – version 1.1
This tutorial assumes some basic knowledge of Yii and a functional development environment.
tags: Forms, tutorial, mvc

Radio Button List with enum values for column of type ENUM >+> incorporate into giix

Updated 2 years ago by pckabeerHow-tos1 comment – viewed 14,762 times – ( +7 ) – version 1.1
Let's say our table 'mug' has a column named 'color' of the type ENUM('red','green','blue'). We want to replace the textfield for the attribute color in the create and update forms of a 'mug' with a Radio Button List, which has the enum values as options. This is a rewrite of c@cba in the wiki article of enumDropdownListThe main code was contributed by zaccaria in the forum (see this post).

File uploads in CForm (Form builder)

Updated 3 years ago by Luke JurgsHow-tos2 comments – viewed 36,109 times – ( +12 ) – 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.