Display Confirm Dialogs Using JavaScript

You might also like

You are on page 1of 1

1.

create Dynaim Action Javascrpit

apex.message.confirm( "Are you sure to reject this work order?",


function( okPressed ) {
if( okPressed ) {
apex.item("P1_YOURITEM").setValue("Y");
} else {
// this code will execute if cancel button pressed
apex.item("P1_YOURITEM").setValue("N");
}
});

You might also like