16 questions
2
votes
2
answers
78
views
Getting form's input type from TypeScript
I am defining the type of my form's fields in the ts, like following:
myFormFields = [{
label: 'Active',
formControlName: 'active',
value: false,
type: 'checkbox'
}]
Then ...
0
votes
1
answer
113
views
How to bind a formarray of form groups from parent to child component in Angular?
Need help from anyone who has worked on angular reactive forms. I have a parent component and 3 child components
In the parent component, I have a form which looks like this :
parent form :
...
1
vote
1
answer
434
views
Angular Dynamically Add Form Controls to Form
My goal is to be able to add a search form with any number of filters on a given page. For example, on my HomePageComponent, I would like to be able to do:
<app-search-form>
<app-searchbox&...
1
vote
1
answer
60
views
Angular - trying to make last form control not required when using Reactive forms and Arrays - with add and delete buttons
This doesn't quite work.
I'm have an array of date pairs (start) and (end), and load three initially, and have two buttons, add and delete. The add button adds a new pair, but only if the last form ...
-1
votes
1
answer
113
views
Angular - adding dynamically formControls only loads partial data
I'm working on an Angular form that gets some data from a service in order to populate a form with inputs. Let's say this is a form to order books.
The user previously selected a genre, and the ...
0
votes
0
answers
26
views
Can I use a single dynamic form throughout my entire Angular application?
Can I use a single dynamic form throughout my entire Angular application?
Is this considered a good practice?
I'm planning to create a simple CRUD application for products and users. I'd like to know ...
0
votes
1
answer
434
views
Angular: Select checkbox on another checkbox selection ( dynamic form control )
I'm new to angular.
I have this UI. I wanted to make Bill To checkbox checked if any one (Address, Email or Phone) of the checkbox is checked. I'm using dynamic form control for checkbox.
code ...
0
votes
1
answer
223
views
Where to create the FormGroup in an Angular component?
I have angular 15 application containing Projects and Todos. and wondering where in my project component to create the following formgroup:
public todoForm: UntypedFormGroup = this.builder.group({});
...
0
votes
2
answers
468
views
Angular 14 form not binding data in dynamic form
I am trying to create a dynamic form to add actors to games in my angular website, but when I load in the page I get the following errors:
The second error happens on all input fields for the dynamic ...
0
votes
2
answers
2k
views
Custom Validator on Angular Reactive Form not firing
I'm working with a dynamic reactive form that takes a json input and builds out a form. I also wrote a custom date validator to check if a date is older than another given date (the date is passed in ...
0
votes
2
answers
491
views
create a new object from two different objects in js
I'm struggling with the following task.
On the one hand I have the following object:
[
{
name: "VALUE1",
type: "select",
label: "Label"
},
{
name: &...
-1
votes
1
answer
729
views
Generate Form Fields for each Record in Angular
I have https://stackblitz.com/edit/ingecalc?file=src/app/app.component.ts
paramsFormArray: FormArray;
properties: Record<string, number> = { a: 1, b: 2 };
constructor(private fb: ...
0
votes
0
answers
127
views
angular how to control all your addrows?
guys I'm trying to create a Form Array once I clicked the modal, the mat-table will appear. and I will select a row, once I clicked the row it will pass to the other component
but, when I add a row ...
0
votes
1
answer
559
views
Dynamic forms including patching
I have a form to update existing/create new users. One of the fields is an array of activities they can participate in.
The list of activities is retrieved from the server. When editing a user, I want ...
1
vote
0
answers
231
views
For ng-dynamic-forms is there any way to override an existing dynamic control without creating a new one?
I'm using udos86/ng-dynamic-forms v14.0.1 with ui-material.
There are 3 controls that don't emit blur and focus as they're missing in the template:
DynamicMaterialSelectComponent
...