Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Work Tasks

SFU​.showConfirmation()

  • Last UpdatedJun 25, 2024
  • 1 minute read

Use showConfirmation() method to show a confirmation message to the user.

Note: The API SFU.showConfirmationAlert()is deprecated and is replaced by SFU.showConfirmation().

Syntax

SFU.showConfirmation(title, message [, callbackHandlerFn]);

Parameters

Parameter

Description

title

Title of the message.

message

Message to display to the user.

callbackHandlerFn(val)

A function that is triggered after the confirmation action is performed.

Here val is a boolean value that represents the confirmation result.

Note: You can include HTML content in the title and message.

Return Value

None.

Example

// Show the confirmation message to the user.

SFU.showConfirmation("Save File", "Do you want to save this file?",

function(val)

{

if (val)

{

//enter code to save the file

}

});

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in