WebForm.addFinalPageMessageText

Adds a message that will be displayed to the user on the form's final page. This method supports the addition of a message from a configured text and supports multiple languages and the substitution of variables.

A message is added using its text id, where the text has been defined using the form/component text editor or in linked texts files, in which case they can be shared by multiple forms/components. Within each text, a substitutable variable is identified by &&. Any substitutable variables in the text are replaced with values in the replaceParameters parameter (see example below).

A form's final page is an optional special page which is only displayed to the user in certain circumstances. It is displayed when a Finish button Control is clicked or a finish button within a Page Navigation Control Panel is clicked. The final page is configured via a form's properties and has limited configuration options.

Further documentation.

A final page message can be added at any time during form processing. These messages are typically used to provide feedback to indicate that the user's request has been successfully processed e.g. feedback any generated reference id, or inform the user that a confirmation email has been sent.

Javascript example:

 form.addFinalPageMessageText("Txt34", [fields.ORDER_NO.value, fields.ORDER_AMOUNT.value]);
 
If text Txt34 in language EN contains text:
Order && received, total value &&
this might be displayed as:
Order 1002345 received, total value 99.67

Parameters

Text text,  UNKNOWNjava.lang.String[]  replaceParameters,