Hi,
Can we include logic so that when we click cancel, the other local variable logic changes?
a!localVariables( local!val:2, a!linkField( links: { a!submitLink( label: "Delete Request", saveInto: a!save(local!val,local!val+1), confirmHeader: "Warning!", confirmMessage: "This request will be permanently deleted. Do you want to continue?", confirmButtonLabel: "Delete Request", confirmButtonStyle: "DESTRUCTIVE", cancelButtonLabel: "Cancel" ) } ) )
Discussion posts and replies are publicly visible
I didn't get the quite well but the code you have attached works well. Each time you click on the button, the value of the local variable increases by 1
yes
for example. when I click on cancel button it should decrease the value by 1.
I want to include both logic, when the update or cancel buttons is clicked. Is that possible using submit link?
No. If you're talking about the buttons on the confirmation message, then no, you cannot do it. Rather place two buttons on the screen itself?