I have an Interface Rule that is displayed inside a Record View (i.e.: Summary). It consists of editable textfields, dropdown lists, and a Submit button that activates a!startProcess(). All of these items are grouped inside a a!formLayout().
When I make changes to the editable fields and click on another link, the alert ""Are you sure you want to leave" does not appear. Is there any way to get this to happen?
I noticed that the alert ""Are you sure you want to leave" appears for interfaces that are part of a User Input Task node in a process. However, I do not wish to use a!startProcessLink() as I want to stay on the same page and preserve the values of my local variables.
Discussion posts and replies are publicly visible
Hi Edmund - you need to think about this the other way around...consider your Record Summary to be a 'Read Only' view of the data you're working with, and start a process as a related action that has a form in a User Input Task where you can edit the data. Then you can include the experience that you're referencing as a Confirmation on the relevant submit button.
After some experimentation, I have noticed some additional behaviours. It appears that when the "saveInto" of input elements saves into a local variable, the alert box does not appear. But, when a rule input is used instead, the alert box will appear.
This is quite interesting !! Thanks Edmund
We have an interface with paragraphField that has saveInto save into rule input variable and the alert box still does not show up. Any further ideas on this case would be appreciated.
Can you provide any further detail pertinent to what you've tried so far? For instance, can you verify that 1) you're using this instance in a task in a live process instance, and 2) that the paragraph field has had some data entered in it (and actually saved into the RI variable, and mapped to an ACP variable within the task configuration), prior to attempting to navigate away from the task without submitting?
It wasn't mapped to ACP variable and that was the problem. Thank you.