Wiki

Articles tagged with "input", sorted by date (updated)X
Displaying 1-7 of 7 result(s).

Tabular Input, Validating and Saving related models

Updated 3 months ago by hasanaviTutorials4 comments – viewed 16,217 times – ( +8 ) – version 1.1
This tutorial shows how to use a model to save and validate related (MANY_MANY) models.

Save or Update Multiple related model values in one Tabular input form

Updated 5 months ago by KonApazTutorials4 comments – viewed 3,908 times – ( +1 / -6 ) – version 1.1
In this wiki I will show you how to save/update a model with many related model For example: How to set a product to multiple categories only in one post form ?

FORM with GET method causes repeated stacking of URL Parameters

Updated 5 months ago by tophTips2 comments – viewed 2,799 times – ( +30 / -4 ) – version all
You are using an ActiveForm in yii (both v1.x or 2), with a GET method like below:

How to read HTML5 Multiple File Input from controller?

Updated 5 months ago by Kartik VHow-tos1 comment – viewed 1,811 times – ( +27 / -4 ) – version all
Ok, so you have a HTML 5 file input markup on your view and you have enabled multiple attribute to true. You may also be using widgets based on HTML5 input like \kartik\widgets\FileInput. But when you read a file in Yii controller using CUploadedFile (Yii1) or UploadedFile (Yii2), you do not see a list of multiple files that you selected in your view, but only one row. Your HTML markup in your view would be something like this and you don't know why this is not working?

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

Updated 10 months ago by nsandenHow-tos3 comments – viewed 24,350 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).

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

Updated 2 years ago by pckabeerHow-tos1 comment – viewed 13,233 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).

javascript + tabular input

Updated 2 years ago by Maurizio Domba CerinHow-tos4 comments – viewed 26,416 times – ( +14 / -1 ) – version 1.1
If you tried this extension with success, maybe you thought how to do it without page submission or ajax calls.