Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Narendran n
@raingopi3_twitter
is it possible to load dropdown data after selecting one dropdown data
Erica Gucciardo
@egucciar
Yes , I've done that
Narendran n
@raingopi3_twitter
Can give me the code you done.
Erica Gucciardo
@egucciar
Can you make an issue on GitHub. I could have time to answer but it's 2:45 am right now. Also I'll need to come up with a method which doesn't involve the custom forked code I wrote in the formly core (it's possible but still needs some tweaks)
venkatzifo
@venkatzifo
Hi Guys, Does Angular Formly has Drag and Drop feature? I am looking for a form builder with Drag and Drop feature using Angular 1. Any suggestions for that?
Erica Gucciardo
@egucciar
Look at the GUI section on the docs. There are a few existing open source angular formly GUI
One has drag and drop
venkatzifo
@venkatzifo
Thank You @egucciar . Using those open source libraries, Can I use angular formly fields to build the form and drap and drop to rearrange those fields ?
Erica Gucciardo
@egucciar
Look into those GUI projects to see if any suite your needs. Angular formly provides a framework , but form builder / drag and drop isn't provided by the library. I think one of the projects on the GUI page is essentially a drag and drop form builder, though
venkatzifo
@venkatzifo
Hi Guys, Is it possible to make the form field label clickable. I want to edit the field properties on clicking field label. How can I do that ?
ashwini kumar
@ashwini1081_twitter
friends, for "checkbox" how to go from true/false to Y/N ...any pointers?
ashwini kumar
@ashwini1081_twitter
@ashwini1081_twitter perhaps i should come here often...after sending my previous message, i found this link https://stackoverflow.com/questions/31947557/getting-value-of-fields-on-submit and that solved my problem :)
@ashwini1081_twitter but if there is a better way, then please let me know
ashwini kumar
@ashwini1081_twitter
anyone? how do i bind my checkbox to values "Y" & "N" (not default true/false)?
Erica Gucciardo
@egucciar
Would use radios and options
Erica Gucciardo
@egucciar
Umm for checkbox you could do maybe like an interface with the model? I've done this before in a controller with dual $watches for the model and the value and a flag to prevent infinite loops. Not beautiful but it works :/
ashwini kumar
@ashwini1081_twitter
Thanks Erica
used options; it simplified everything
Another very common question. How do I convert empty strings in angular-formly fields to NULL? i.e '' -> NULL? What is the best formly way of doing it?
ashwini kumar
@ashwini1081_twitter
https://asyoulook.com/computers%20&%20internet/javascript-empty-fields-not-included-on-form-submit-when-using-angular-formly/731762 worked for me, but is there a formly way of validating+translating empty-string to NULL
ashwini kumar
@ashwini1081_twitter
summary: trying to change {key=''} to {key=null} in formly. Whats the best way? (i tried following options: loop in "onSubmit" function, add a "validator" to field, sneaked code in "hideExpression" etc.
Kalpit Pandit
@PanditKalpit_twitter
Hello everyone
Facing one small problem in angular-formly while integrating it with angular-translate
Kalpit Pandit
@PanditKalpit_twitter
formly-js/angular-formly#760
Danny Callaghan
@dannycallaghan
Hi all. I was of the understanding that if a formly element is hidden (using either 'hide' or 'hideExpression' or both) that, as that element was no longer in the DOM, the value would no longer be in the model. I can see, now, that this isn't the case. Is this as intended? Is there a way I can remove that value from the model if the element isn't in the DOM? Thanks.
Danny Callaghan
@dannycallaghan
OK, forget it. Found this after further research -> https://github.com/formly-js/angular-formly/issues/380#issuecomment-120494575 . Seems a bit weird to me :/
Manu Singhal
@manusinghal19

Hey Guys, I need to add a css class to div element containing a fieldGroup form. any suggestion how to do that?
Whatever className I provide to fieldGroup, It gets added correctly and as expected to form element, But for adding a css class to the parent div, I am not able to figure it out.

For e.g.
fields = [
{
className: 'row',
fieldGroup: [...]
}
]
Gives me this:

<div formly-field="" class="formly-field ng-scope ng-isolate-scope formly-field-group" ...>
<ng-form class="row formly ng-pristine ng-valid ng-scope ng-isolate-scope" ...>
</ng-form></div>

What I need is :

<div formly-field="" class=" MY_ROW_CONTAINER_CLASS formly-field ng-scope ng-isolate-scope formly-field-group" ...>
<ng-form class="row formly ng-pristine ng-valid ng-scope ng-isolate-scope" ...>
</ng-form></div>

Please help. Thanks

Manu Singhal
@manusinghal19

Hey Guys, I need to add a css class to div element containing a fieldGroup form. any suggestion how to do that?
Whatever className I provide to fieldGroup, It gets added correctly and as expected to form element, But for adding a css class to the parent div, I am not able to figure it out.

For e.g.

fields = [
    {
        className: 'row',
        fieldGroup: [...]
    }
]

Gives me this:

<div formly-field="" class="formly-field ng-scope ng-isolate-scope formly-field-group" ...>
       <ng-form class="row formly ng-pristine ng-valid ng-scope ng-isolate-scope" ...>
       </ng-form>
</div>

What I need is :

<div formly-field="" class=" MY_ROW_CONTAINER_CLASS formly-field ng-scope ng-isolate-scope formly-field-group" ...>
       <ng-form class="row formly ng-pristine ng-valid ng-scope ng-isolate-scope" ...>
       </ng-form>
</div>

Please help!

Manu Singhal
@manusinghal19
I anyone out there to help!!
Please!!
hanyangzao
@hanyangzao
hello,everyone
Who used ’ formly builder’?
Erica Gucciardo
@egucciar
Manu there's no way to do it with field group as far as I know.
Fedoua Jnt
@FedouaJnt
hey anyone could help please
Erica Gucciardo
@egucciar
With what fedoua?
Fedoua Jnt
@FedouaJnt
in php
s94983
@s94983
image.png
how to remove the blank line in angular-formly and type is select ?
BruceRobertson
@BruceRobertson

In templateOptions

notNull: true

definitely works if you're using the bootstrap templates Bootstrap templates

s94983
@s94983
Thanks ! It works!
Victor Figueira
@Victor_SFL_twitter
Hi, I have my formly inside a md-card, when the form has no fields It hides as expected but the card is still visible. Is there a way to count the rendered fields on a form (or similar) to hide the card too?
linkshor
@linkshor
Hi, i try to use datetimepicker.js with formly but i have a error "ctrlCopy.$setValidity is not a function" someone have an indea
idea?
linkshor
@linkshor
?
s94983
@s94983
@BruceRobertson I have set nutNull is true and it is works in chrome , but it is not works in IE11, do you have any idear let is works on both chrome and IE11?
mhmd salem
@mhmdsalem1993
i want to add extra fields on click but its not working ?
any suggestions ?
PyArchitect
@PyArchitect
Hello, anyone knows if angularjs version 1.2 is compatible with newer versions of formly 8.0 ?
Erica Gucciardo
@egucciar
@mhmdsalem1993 did you try using repeat section component
Pyarchitect good question , it almost is
I had to make some adjustments to the validation logic as it makes assumptions that only are applicable in 1
1.3+