form-control Questions

4

Solved

I just would like to know if it is possible to dock a windows form on top of the user screen? I have been trying to do this by manually setting the position of my form to the coordinates I want. Bu...
Mahatma asked 9/7, 2010 at 15:55

7

I'm a beginner and I'm doing an exercise following a book. Below is my code and i got this "Missing partial modifier on declaration of type 'Windowsform.Form1'; another partial declaration of thi...
Consume asked 12/10, 2012 at 20:14

33

Solved

Here is my Angular component: @Component( { selector: 'input-extra-field', template: ` <div class="form-group" [formGroup]="formGroup" > <switch [attr.title]="...
Badderlocks asked 26/9, 2017 at 8:59

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

5

Solved

I am using form control here is code for my html component <mat-form-field> <mat-select placeholder="Toppings" [formControl]="toppings" multiple> <mat-option *ngFor="let top...
Wordsmith asked 26/7, 2018 at 15:43

5

I was wondering if anyone can help explain why i am unable to change form input type dynamically? For e.g. <user-input type="{{ isActive ? 'password' : 'text' }}"></user-input> does...
Intracellular asked 3/4, 2018 at 5:20

7

Solved

I am trying to add and remove validators in a formGroup controls based on certain condition. When I am updating the validators through formGroup.updateValueAndValidity() for whole form its not upd...

7

Solved

How can I add a FormControl to a FormGroup dynamically in Angular? For example, I would like to add a mandatory control which name is "new" and its default value is ''.
Disadvantaged asked 30/11, 2017 at 12:41

2

Solved

Framework which I use (Angular 7). I want set some type for FormControl like this. startDate: FormControl<NgbDate>; endDate: FormControl<NgbDate>; Do you have any experience with ...
Tritheism asked 30/5, 2019 at 15:17

3

Solved

I am using react bootstrap and this framework provides some nice FormControls. But I would like to make the Input field that is generated within the FormControls to have a prop of readonly="readon...

3

Solved

I'm preparing a stackblitz for a problem that I have with child-parent communication, but along the way, I've been confronted with a different issue, namely, I'm getting the following error: No val...
Cove asked 19/3, 2021 at 9:36

4

Solved

I'm trying to disable a submit button using [disable]=form.controls[...].invalid condition checking. The submit button should be disabled if there is an input fields is empty or invalid. But looks ...
Lydon asked 31/1, 2018 at 1:46

4

Solved

I am trying to set a value to a Mat input using FormControl <input name="contact" matInput [matAutocomplete]="contactAuto" [formControl]="myControl" #contact (blur)="validateInput($event, conta...
Dished asked 2/8, 2018 at 9:1

13

Solved

I'm using Angular2-rc5, and I'm currently getting an error on my login page. I'm trying to make a form but the console throws exceptions telling me that it can't find my formcontrolls even th...
Daley asked 9/12, 2016 at 23:34

2

Solved

Hello All I have a Formarray which which has set of Roles. During Edit it dynamically removes & adds roles in that form array till here all works fine, but when i submit the form it thorws erro...
Gregory asked 11/7, 2019 at 4:19

1

I created a customized searchable dropdown. For this angular component, it implemented ControlValueAccessor and also got NG_VALUE_ACCESSOR, ControlContainer provider. Hence, this component could be...
Truncation asked 30/8, 2019 at 19:34

4

Solved

Hello I'm creating a login form in react, to check the login parameters use Checkbel of the package, but when I run the code I'm thrown this exception: ./src/App.js Attempted import error: 'Control...
Waler asked 30/1, 2019 at 10:35

2

Solved

I have implemented a stackblitz where you can create a dynamic form using some configuration. Everything works fine till you use a FormArray. What's the idea? Basically you can have many fields in ...

2

Hey so I have a text box/FormControl that's supposed to update a field in a json in this.state. I was wondering if there was a better way to do onChange? <FormControl type='text' placeholde...
Outboard asked 21/7, 2016 at 18:34

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

1

I want to know if two text nodes are visually consecutive, regardless of html structure, i.e. that there isn't an empty line or any other element between both. I'm using Ranges to get the rectangl...
Berniecebernier asked 1/9, 2016 at 19:43

3

Solved

I am working on Angular Reactive forms, I have added a couple of FormControl into FormArray dynamically, but I am getting issue to reference those FormControls in my template while binding them wit...

0

I am trying toggle/check according specific permissions with array set id's - to set permissions for users according to their user role. for an example an admin would have permissions to create use...
Louls asked 15/8, 2018 at 23:45

5

Solved

I'm using ReactiveFormsModule of Angular2 to create a component that contains a form. Here is my code: foo.component.ts: constructor(fb: FormBuilder) { this.myForm = fb.group({ 'fullname': ['',...

3

Solved

can i get the FormGroup - the parent of the FormControl that i have? like this: onBlur(formControl: FormControl) { var formGroup = formControl.parent // a FormGroup has the FormControl if (form...
Lelialelith asked 13/10, 2016 at 10:39

© 2022 - 2024 — McMap. All rights reserved.