Wiki

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

javascript + tabular input

Created 3 years ago by zaccariaHow-tos4 comments – viewed 25,917 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.

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

Created 3 months ago by KonApazTutorials4 comments – viewed 2,099 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 ?

Tabular Input, Validating and Saving related models

Created about a year ago by Xavier JohnTutorials3 comments – viewed 14,057 times – ( +7 ) – version 1.1
This tutorial shows how to use a model to save and validate related (MANY_MANY) models.

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

Created 2 years ago by c@cbaHow-tos2 comments – viewed 23,216 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).

FORM with GET method causes repeated stacking of URL Parameters

Created 3 months ago by Kartik VTips2 comments – viewed 1,802 times – ( +26 / -4 ) – version all
You are using an ActiveForm in yii (both v1.x or 2), with a GET method like below:

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

Created 2 years ago by pckabeerHow-tos1 comment – viewed 12,411 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).

How to read HTML5 Multiple File Input from controller?

Created 3 months ago by Kartik VHow-tos1 comment – viewed 1,350 times – ( +24 / -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?