Hello everyone,
1. I've created the text: "You have unsaved changes";
2. In VISIBLE: Form1.Unsaved (to show the message only when the form was edit and not submited)
In this situation, it was working really well, when creating/editing the form.
But I decided to add a buttom SAVE AS DRAFT
1. SAVE AS DRAFT - OnSelect: UpdateContext({locIsSubmit:false}) && SubmitForm(Form1)
2. SUBMIT - OnSelect - UpdateContext({locIsSubmit:true}) && SubmitForm(Form1)
PS:. ";" doesn't work with me and i've no idea why it's happening. The formula just worked this way.
Problem: Now, when I'm just visualizing the answers the Text is showing. I thing that my form is not being saved anymore.
To solve this problem I added in the VISIBLE: Form1.Unsaved && Form1.Mode <> FormMode.View
It doesn't show anymore in the viewing mode, but, when I click on EDIT or NEW, it shows without any user changes. I just want that it appears when the user changes something.

Report
All responses (
Answers (