kelp404 / angular-form-builder

Drag and drop to build bootstrap forms in AngularJS.
http://kelp404.github.io/angular-form-builder/
MIT License
599 stars 340 forks source link

Form builder not working when data comes from remote #117

Open bhinderbaljeet opened 6 years ago

bhinderbaljeet commented 6 years ago

I have been using form builder and it was working fine until there comes a case, Where admin creates dynamic forms and they get stored in mongoDB.

Thereafter when user logs in we need to show those forms to user by fetching the fields from DB.

But when I fetch fields from db and calling the api named $builder.addFormObject, it is not updating view on the ui and nor it is inserting the field in the form.

I am also able to reproduce the issue and created a simple plunkr describing the same. Here is the url for that: https://plnkr.co/edit/0gzxKr7amvaOGhuwiV0M?p=preview

Can you please try to resolve the issue if possible?

Thanks