ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

Throw and Alert when a custom button is not pressed


#1

I want to use it in my if statement that-> if my custom button is not pressed, throw an alert that you didn’t pressed this button. I am unable to capture the event on how to get whether the custom button is pressed or not


#2

Set a flag when the button is pressed. Check if your flag is set, if not, show alert.

This is a weird workflow, if users are not clicking that button, something is wrong in the workflow.