How can i check whether submit button is clicked?

0
The scenario is i have a data view in which user fill up information and click on submit. If user go back without click on submit i need to show a message “do you want to auto save your changes”. Right now if user go back without submit button click the data is being stored automatically. Please help. Thanks
asked
4 answers
1

Do you tried to use a custom microflow on the button as submit button?

answered
1

You can check the App Store, I think I remember there is a Module, which can check if the user trys to go back and can trigger then an action. Maybe you can take a look there.

answered
0

Hi Gerrit,

Thanks for the response. I haven’t tried it. I have just started using mendix.

I can do that using custom microflow for save button. But then also how i can check if user click on back button without click on save button.

answered
0

The back button shouldn't  submit the data if it's the default button.

The save button also has an property with close page, so the pages automatically closes when the user presses save. 

 

If you want other logic, you need to add a microflow to the button, which also commits the object.

 

answered