Wiki

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

Create Form With DynamicModel

Updated 6 months ago by Misbahul D MunirTips4 comments – viewed 3,426 times – version 2.0
In yii2 we can create form without create FormModel. Here we go
tags: form, yii2, model

Yii 1.1: Cgridview: Use Special Variable $Data In The Options Of A Button (I.e. Evaluate Options Attribute)

Updated 9 months ago by Louis GacTutorials1 comment – viewed 4,837 times – ( +6 ) – version 1.1
For each column of the CGridView, we can specify customized buttons : Customize Buttons in CGridWiew

Nested inline active fields inside Bootstrap horizontal forms

Updated 10 months ago by Kartik VHow-tos2 comments – viewed 11,905 times – ( +40 ) – version 2.0
Are you using the Bootstrap 3 form styles with Yii 2 Active Forms? Have you faced problems in displaying complex layouts which needs you to display multiple inline form fields in a single row, within bootstrap horizontal forms. Then read on.

Managing different Bootstrap form layouts with yii2-field-range extension.

Updated 10 months ago by Kartik VHow-tos0 comments – viewed 5,668 times – ( +35 ) – version 2.0
This wiki will explain how you can use the Field range extension with multiple Bootstrap form layouts (vertical or horizontal). You maybe aware, that the yii2-field-range extension enables you to easily setup ActiveField range fields with Bootstrap styling. You basically can setup two attributes joined together like a single field with combined validation error block.

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

Updated 11 months ago by Kostas Apazidis (KonApaz)Tutorials4 comments – viewed 8,433 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 ?

Update related models of a model using listBox and checkBoxList in the form

Updated 11 months ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 7,140 times – ( +2 ) – version 1.1
Suppose you want to have a list in Category with its related products and you want to updates the list (removing or insert product items) This wiki show us how to do that

FORM with GET method causes repeated stacking of URL Parameters

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

Additional form data with XUpload

Updated 2 years ago by AsgarothHow-tos7 comments – viewed 29,855 times – ( +9 ) – version 1.1
In this article you'll learn how to send additional form data when uploading files using XUpload widget

Show captcha after <N> unsuccessfull attempts

Updated 2 years ago by zitterHow-tos7 comments – viewed 16,144 times – ( +14 / -4 ) – version 1.1
In this mini howto I would like to show how to add a required captcha field in the login form, after a defined number of unsuccessfull attempts. To do this, I will use the blog demo that you have in default Yii download package (path/to/yii/demos/blog).

Update two models with one view

Updated 2 years ago by SebKTips11 comments – viewed 34,389 times – ( +10 / -2 ) – version 1.1
Suppose to have two models: Users and Emails. You do not want to store email in a Users model. And User can have 0 or many emails. This is the form generated to create a new user (just username).
tags: database, model, view, form