Skip to content
🚀 Rapid Application Development with the App Builder

wpda.confirm(title, message, callback)

Use wpda.confirm to show a confirm dialog box using your app style.

Scope: GLOBAL

Parameters

ParameterTypeDescription
titlestringAlert title.
messagestringAlert message. Supports HTML.
callbackoptionalYour JavaScript function.

Return Value

None

✨ Example

js
wpda.confirm(
	"My Confirm",
	"<div>Message from confirm</div>",
	(() => wpda.alert("My Alert", "Message from alert"))
)

Output

WP Data Access - wpda.confirm()