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 8 months ago by hasanaviTutorials4 comments – viewed 20,409 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 10 months ago by Kostas Apazidis (KonApaz)Tutorials4 comments – viewed 7,891 times – ( +1 / -7 ) – 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 10 months ago by tophTips2 comments – viewed 6,013 times – ( +38 / -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 10 months ago by Kartik VHow-tos1 comment – viewed 3,433 times – ( +35 / -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 about a year ago by nsandenHow-tos3 comments – viewed 26,987 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 14,737 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 27,665 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.