I need to have a confirmation pop up on an infopath form to reduce the chance of accidental deletes.
I am using infopath designer 2013 and have tried using
if (XdConfirmChoice.xdNo == thisXDocument.UI.Confirm("Message that should be shown to user", XdConfirmButtons.xdYesNo))
but it won't recognise thisXDocument.
Can anyone help please ?