Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove previously created form elements #103

Open
kamleshpawar2006 opened this issue Sep 15, 2016 · 2 comments
Open

Remove previously created form elements #103

kamleshpawar2006 opened this issue Sep 15, 2016 · 2 comments

Comments

@kamleshpawar2006
Copy link

kamleshpawar2006 commented Sep 15, 2016

Hello,

I am using this library and works fine , but i am facing a issue when i try to create a form after creating one form, means, if i have already created a form on a page whose state say; http://locahost/example/#/newForm and after this when i go to another state say; http://locahost/example/#/formList and now if again i create a new form by going to http://locahost/example/#/newForm state then the page shows previously created form components.

How can i remove old form components.

I am using
<div class="fbbuilderDiv" fb-builder="default"></div>
for form building, and,
<div class="previewdiv" ng-model="input" fb-form="default" fb-default="defaultValue"></div>
for preview

Now how can i flush old form data?

i tried
$scope.default = [];

But its not clearing the old form elements

Thanks in advance

@kamleshpawar2006
Copy link
Author

i tried this $builder.forms.default; but this is clearing further form data that i am storing into db

@rajansharma3097
Copy link

Hi @kamleshpawar2006 ,

I'm also facing the same issue. Can you please let me know how you solve this problem.

Thanks,
RJay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants