JavaScript

{dialog.object}resetForm Method

Syntax

{dialog.Object}.resetForm([showPrompt])

Arguments

showPromptboolean

Default = true. If true, a confirmation prompt will be shown confirming the action. If false, the confirmation prompt will not be shown and the UX will be reset.

Description

Resets all controls in the UX Component to their original value. Displays a confirmation prompt before resetting the controls. Pass in an optional parameter of false to suppress the prompt.

Example

// Reset the UX
{dialog.object}.resetForm();

// Reset the UX - do not prompt the user for confirmation
{dialog.object}.resetForm(false);

See Also