Wiki

Articles tagged with "forms"X
Displaying 1-10 of 11 result(s).

Simple way to implement Dynamic Tabular Inputs

Created 22 days ago by ezekielnoobTutorials1 comment – viewed 2,364 times – ( +3 ) – version all

How to implement form events

Created 7 months ago by Antonio RamirezHow-tos4 comments – viewed 4,351 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

MongoDb's embedded documents mapping for ActiveRecord in Yii2

Created about a year ago by edoardo849How-tos1 comment – viewed 5,778 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.

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

Created 2 years ago by nlacTutorials5 comments – viewed 34,466 times – ( +8 / -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.

XUpload Workflow

Created 2 years ago by AsgarothTutorials33 comments – viewed 56,096 times – ( +34 ) – version 1.1
This wiki describes a more complex workflow using the XUpload widget

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

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

MVC primer and 5 minute form walkthrough

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

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

Created 3 years ago by c@cbaHow-tos3 comments – viewed 27,299 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).

File uploads in CForm (Form builder)

Created 3 years ago by Luke JurgsHow-tos2 comments – viewed 36,361 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.

An easy way to display a success page using flash messages

Created 4 years ago by qiangTips2 comments – viewed 28,762 times – ( +26 ) – version 1.1
We often need to display a success page after the user has submitted a form without problem. We may show some welcome message after a user registers a new account. There are many ways to implement this workflow. In this article, I will explain a method that exploits flash messages.