Hello,
I'm using a Javascript OnLoad to navigate to different forms based on the conditions. The whole logic and navigate to a different form works without issue, but now as there are some default values in the form, before navigate it asks to Save or Discard changes.
Is it possible to navigate to a different form, discard the changes automatically and not show the pop up?
I'm using this code to change the form, where newFormLabel is Id of new form.
formContext.ui.formSelector.items.get(newFormLabel).navigate();
Thank you
Tomas