Error Info

Last Updated: 12-Oct-19

An ErrorInfo action dialog

An ErrorInfo action dialog

The ErrorInfo interactive action displays a final error message to the user. Configuration of the action is nearly identical to that of the Info interactive action. The action always shows a cancel button, a back button is optional, and it automatically adds line breaks to wrap longer lines based upon the following:

  • Spaces
  • Periods
  • Commas
  • Forward slashes
  • Backslashes

The following snippet creates an error dialog box to inform the user of a fatal error or issue; it includes some minor text formatting. For a complete list of supported text formatting tags, see the Text Formatting section.

<Action Type="ErrorInfo" Name="SomethingBad" Title="Something went wrong">
  <![CDATA[I’m sorry, but the computer overlords are not happy with you today and this wizard cannot continue.<br><br>Have a nice day.]]>
</Action>

Note the use of <![CDATA[ and ]]> tags to enclose the informational text. These instruct the XML parser to ignore the contained content which is key when using any embedded HTML tags as these disrupt the XML parser.