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

How to Clear the form controls when i move to another page ? #104

Open
santosh-k1 opened this issue Oct 6, 2016 · 1 comment
Open

How to Clear the form controls when i move to another page ? #104

santosh-k1 opened this issue Oct 6, 2016 · 1 comment

Comments

@santosh-k1
Copy link

santosh-k1 commented Oct 6, 2016

Hi,

I am not able to clear the dragged from when i move to another page.. when i return to the same page all control is display as earlier.. so can you tell me How to Clear the form controls when i move to another page?

Thanks

@santosh-k1 santosh-k1 changed the title How to Clear the form controls when i move to another page How to Clear the form controls when i move to another page ? Oct 6, 2016
@kamleshpawar2006
Copy link

kamleshpawar2006 commented Oct 6, 2016

Hello Santosh,

I had the same issue. i fixed it by defining the form page state as follows,

.state('createForm', {
url: 'createForm',
...
onExit: function($builder) {
$builder.forms.default = [];
},
templateUrl: 'path/to/page'
}

Hope this helps you

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