formbuilder Questions

6

I have a form where I'm collecting phone numbers (mobile, personal, other). I need to have at least input populated. I'm trying to use Angular2 FormBuilder. After much research I'm having a proble...
Francois asked 29/10, 2016 at 16:10

1

I recently migrated from Angular12 to Angular14, Angular automatically converted FormControl to UntypedFormControl in some places. I observed that in some components where I am using FormControl it...
Osteoporosis asked 19/3, 2023 at 9:27

3

Solved

Im trying to use a specific validator in a form. That form is for an user to redefine his password, he must also enter his current password. For that I use a built in validator from symfony in my...
Zendah asked 26/2, 2014 at 13:33

3

Solved

I have the following form: const enum Fields { FirstName = 'firstName', LastName = 'lastName' } interface FormType { [Fields.FirstName]: FormControl<string | null>; [Fields.LastName]: Fo...
Schaper asked 4/6, 2022 at 15:11

14

Solved

I have not found any easy way to accomplish to simply check a Checkbox by default. That can not be that hard, so what am i missing?
Pluralize asked 6/3, 2012 at 12:29

7

Solved

I am rendering a form with an entity field in symfony. It works well when i choose a regular entity field. $builder ->add('parent','entity',array( 'class' => 'AppBundle:FoodAnalytics\Reci...
Epirogeny asked 23/11, 2014 at 22:2

1

Solved

So I have a form where a control is required only if another control has a value, for this I created the following structure profileGroup = this.fb.group({ username: [''], address: [ '', [ (con...

0

I'm using flutter_form_builder and I want to build a dynamic form, such as answering Yes or No on a Widget and then having another Widget pop-up right below it. For instance: "Did the patient ...
Mayor asked 16/9, 2021 at 11:25

4

Solved

I am still learning Symfony2 and don't understand how to upload a file. Don't worry, I've already checked the documentation. It's really good, but my problem isn't explained in any tutorial. I am...
Miracidium asked 30/7, 2013 at 15:31

4

Solved

Okay, i'm trying to check if an user has a specific role, i did this however, when i do this: public function buildForm(FormBuilder $builder, array $options) { $builder ->add('nombre',null,a...
Clinquant asked 29/1, 2013 at 15:2

2

Solved

I have an array of languages for a user to select and a default language to pick. When a default language is selected, I want to make sure the checkbox for that language is also selected programmat...

3

I am trying to create a conditional required validation on a specific field.I try doing this by return Validators.required back in my function, but this doesn't seem to work. How do I go about doin...
Lyris asked 30/11, 2016 at 10:46

1

This is my html code which is basically a form. <form [formGroup]="calculatedForm" fxLayout="column" fxLayoutGap="15px" fxLayoutAlign="start space-betwen"> <label for="category">CATEG...
Procrastinate asked 25/9, 2019 at 14:3

2

Solved

Why do I keep getting this error? I think I'm doing everything right? "EXCEPTION: Uncaught (in promise): TypeError: value.forEach is not a function TypeError: value.forEach is not a function at Fo...
Karee asked 16/12, 2016 at 3:59

6

Solved

I am creating a "day" select dropdown. With a selectRange I can do this: {{ Form::selectRange('day', 1, 31, $day) }} The problem is, when the form loads, if $day is not set it selects 1 by defau...
Outlawry asked 13/8, 2014 at 5:26

4

Solved

I'm having an issue with the forms and the money gem. This is my problem: I create a record which has an "amount" field (mapped to money object). Let's say I enter 10 (dollars). The money gem c...
Desouza asked 31/1, 2011 at 22:20

8

Solved

How can I set the HTML class attribute to a form <input> using the FormBuilder in Symfony2 ? Something like this: ->add('birthdate', 'date',array( 'input' => 'datetime', 'widget' =&...
Breezy asked 18/7, 2011 at 14:52

1

Solved

I want to init my mat chips input with input data but when I have two chips, it forms only one form : *.component.ts @Component({ selector: 'app-pps-dialog', templateUrl: './pps-dialog.compo...
Attract asked 28/8, 2018 at 15:11

1

Solved

So I have a child component that goes something like this export class ChildComponent implements OnInit { @Input('parentForm') public parentForm: FormGroup; constructor(private fb: FormBuild...

6

Solved

Well I have a two models related with a on-to-many assoc. #models/outline.rb class Outline < ActiveRecord::Base has_many :documents end #models/document.rb class Document < ActiveRecord...
Belshazzar asked 29/11, 2011 at 12:50

2

Solved

First I've read documents for both Collection Field Type and How to Embed a Collection of Forms ... The example is about one entity (Task) that has one-to-many relation with another entity (Tag), a...
Ambulate asked 14/1, 2015 at 22:46

2

I have been trying to create an extremely basic symfony form (used for search functionality) with only one input. It uses GET method on submit. It seems to work as expected, however it generates an...
Lowrance asked 11/10, 2013 at 1:40

2

Solved

I have a problem with the default value of an Angular 2 Form (formbuilder): My default values are observables (which I'm retrieving from a server), so I can't implement them like this: export clas...
Cammycamomile asked 4/5, 2016 at 15:20

2

Solved

I'm developing a form using Angular2's FormBuilder with custom validation. Problem: In customValidator I'm using this to access the local object data. I'm getting a undefined error when the valida...
Broz asked 30/10, 2016 at 14:0

1

Solved

I created the following form in angular2: import {Component, ElementRef, ViewChild, AfterViewInit} from "angular2/core"; import {Observable} from "rxjs/Rx"; import {ControlGroup, Control, Validato...
Eastward asked 29/10, 2016 at 19:57

© 2022 - 2025 — McMap. All rights reserved.