active-form Questions
4
Solved
I am using Yii2 framework and I'd like to generate an html code like this
<input type="checkbox" id="queue-order" name="Queue[order]" value="1" checked>
in a view which uses ActiveForm.
I...
Halfdan asked 1/6, 2014 at 15:50
4
Solved
I am developing a project with Yii.
I need to use jquery ui on many pages of site. So I add jquery core library and jquery ui library in the layout of site to have access to them on all the pages....
Audiophile asked 30/5, 2013 at 8:51
4
Solved
I've created an ActiveForm using yii2 like this:
<?=$form->field($item, 'finalPrice', [
'options' => [
'tag' => 'div',
'class' => '',
],
'template' => '<span class="col-...
Glasgow asked 9/11, 2015 at 12:35
5
Solved
I have created new Yii2 basic project and want to dig in.
There is a Username field on login page:
I want to change label 'Username' to a custom one, e.g. 'My superb label'.
I have read the manu...
Telepathy asked 30/11, 2014 at 23:24
3
Solved
i have two forms holds the same model attributes, since Yii2 generate the field id to be ModelName-fieldName so the field generated will be as follow:
<select name="Channel[channel]" class="for...
Carbrey asked 2/5, 2016 at 7:56
3
Solved
I have to implement the validation as mentioned in the title that either one of the two fields (email, phone) is required. I am doing this in my model:
[['email'],'either', ['other' => ['phone'...
Saudra asked 10/1, 2017 at 10:25
4
Solved
I want the radio button preselected in my form.
<?= $form->field($model, 'config')->radioList(['1'=>'Automatic Entry',2=>'Manual Entry'])
->label('Barcode/Book No Generation');...
Unreligious asked 11/7, 2015 at 9:55
4
Solved
So, I want to have two radio button in separate place, I have been trying to search for the solution and everyone suggests to use radiolist which is not possible in my case.
If I put it like this ...
Sassenach asked 11/12, 2015 at 4:40
3
Currently to achieve ajax submit and validation at the same time. I'm using custom function like:
$('.edit_form').submit(function (e) {
e.preventDefault();
var form = $(this);
var formData = $...
Wertheimer asked 14/7, 2015 at 21:39
3
It seems template for checkbox in sample yii2 project doesn't not apply correctly
<?= $form->field($model, 'rememberMe', [
'template' => "<div class=\"col-lg-offset-1 col-lg-3\">{i...
Dislocation asked 6/11, 2014 at 9:27
2
Solved
I have two ActiveForms in a modal window and after submitting first form, I need to update second one and stay in modal.
As I understand pjax can handle that, but can't get it to work properly.
In...
Proportionable asked 23/2, 2015 at 13:1
2
How can i use ActiveForm with these requirements?
Submit form with ajax.
Before submitting with ajax: Check if error exits.
After submitting: Display error of field under field's input if the ser...
Manager asked 8/2, 2015 at 14:15
2
Solved
This is my form in the view page of my website.
<?= $form->field($model, 'taskID')->textInput(['readonly' => true, 'value' => Yii::$app->getRequest()->getQueryParam('id')])...
Flummery asked 28/12, 2015 at 6:31
1
Solved
I want to send form data from my view to the controller to insert the data in the database. I've created the model and the controller but when I'm sending the form to the controller with the action...
Dispeople asked 23/12, 2015 at 7:36
1
This is how i added the icon with text field. Also added the image of generated output.
I don't want to use Krajee Yii Extensions. So i started to read the documentation.
$form = \yii\widgets\Acti...
Squalid asked 27/3, 2014 at 12:50
1
© 2022 - 2024 — McMap. All rights reserved.