Skip to main content

Posts

Showing posts with the label confirm

How to add confirm message dialog on button click in Siebel Applet Browser Scripts

Background: On some action like button click it is recommended to add confirmation message as user might accidentally click the button and operations starts or change the value of field based on which some action happen like a trigger. Process: Add below script Applet Browser Script, compile and generate browser scripts and test. function Applet_PreInvokeMethod (name, inputPropSet) {    if(name == 'NewRecord')    {       if(confirm("Are you sure you want to create a new record??"))          return ("ContinueOperation");       else          return ("CancelOperation");     } return ("ContinueOperation"); }   Change the method name and message as per your need. Note: On every compilation you will need to regenerate the browsers scripts and place on web server path.