AnsweredAssumed Answered

JS Confirmation (OK/Cancel) in a custom button

Question asked by jlabuelo on Dec 18, 2014
Latest reply on Dec 18, 2014 by jlabuelo
Hi there

It must be simple, but I dont figure out how to do this. I am trying to include a JS popup message that asks the user to continue with the action in a custom button, just for confirmation. I mean, a typical OK/Calcell pop up message.

If the user hits OK, the action is performed, if the user hits Cancell nothing happens.

Basically I have my custom button created in a custom module in Detail View, and when the user clicks on the custom button the action defined in the controller.php gets done.

How can I indclude a confirmation step in the middle for the end user?

Thanks a lot in advance guys!!

Outcomes