448 questions
1
vote
1
answer
55
views
how to detect formly toggle field type is disabled?
I have a formly form with toggle field, I would like to detect when the user clicks on the toggle to disable it.
here is what I have done so far:
fields: {
key: myToggle,
...
1
vote
0
answers
70
views
Registering custom formly element in formly v7
I need some help in regsitering custom element in formly in v7:
"@ngx-formly/core": "7.0.0",
"@ngx-formly/material": "7.0.0",
current code snippet:
...
1
vote
1
answer
43
views
Situation Dependent displaywith Property with Formly Autocomplete
I'm using Formly Autocomplete in an Angular v18 project and I'm not sure how to add a displayWith property that will take some function coupled with my Formly Autocomplete field to uniquely display ...
1
vote
2
answers
488
views
Angular Formly Read Only
How can I make my Angular Material formly fields read-only? I've looked at their documentation for props and seen nothing relating to read-only fields.
I Added "readonly: true" as a prop to ...
1
vote
0
answers
269
views
is front end library Formly future proof?
https://formly.dev/
Im not sure if this is the correct place to start a discussion but here it goes.
Im working on an Angular project which is heavily relying on complex forms and it is expected to be ...
0
votes
1
answer
564
views
Add input file field to FormlyFieldConfig
I'm building a form in my project and I have to add an image selection field, that is, an input field of type file. I searched a few places on the internet and couldn't find my solution. Has anyone ...
1
vote
0
answers
72
views
Formly Reset the Errors on Focus Out for Prime Input Mask
Formly should retain error instead of nullifying the errors for inputmask.
https://stackblitz.com/edit/angular-ljcdzn-3r3fwu?file=src%2Fapp%2Fapp.component.ts,src%2Fapp%2Finput-mask.component.ts,src%...
1
vote
2
answers
1k
views
Ngx-Formly how to pass custom properties to a custom type?
I'm trying to create a formly custom type. I want to be able to pass a custom property with the call to a service in the field definition. For example
{
key: 'city',
type: 'customType',
props: {
...
0
votes
2
answers
536
views
Angulrar formly fieldGroup is not working for field with key as integer
Angular formly fieldGroup should the object but it is returning the array as value.
as per formly field config, inventories property in model object should be in object but it is giving array.
package....
0
votes
1
answer
903
views
Angular Formly Form hook OnInit -> field.xxx is possibly undefined
Angular version: 16.0
Formly version: 6.1.8
I'd need to create a cascated select for my app. The first field is a Material Autocomplete and then the next one a simple select
I'm struggling, however, ...
0
votes
2
answers
446
views
Hide filed in Angular Formly
How to hide fields in formly , cause hide expression hiding the DOM by display:none which alter the position of other element in the current and previous rows .
I have a requirement to hold on to the ...
1
vote
1
answer
1k
views
Styling Formly Form Custom Wrapper + Custom Type
So I'd like to have a mat-autocomplete using formly-forms and have a add and delete button at the end of each autocomplete. Most importantly I want this "duo" of autocomplete + button to ...
0
votes
1
answer
117
views
How to achieve that in the property of a model that expects an array the added value is kept within the array?
I have the following models. as you can see email expects a string array
export interface Member {
id: string;
name: string;
lastName: string;
emails: string[];
}
export type MemberPreview = ...
0
votes
1
answer
584
views
Custom Formly Component not showing validation message on blur
I have a custom angular date picker component which uses ngb-datepicker and implements control value accessor. Now I create a formly component from this to use in my json form. This works fine but it'...
0
votes
1
answer
240
views
How to add tooltip to angular formly dropdown elements
I want to add tooltip to angular formly dropdown element, is there a way to solve this?
Tool tip should contain label - value of the dropdown elements.
Is there any tooltip property which we can use ...