Confirmation Object

Confirmation Object

IntroductionUsageProperties

Introduction
The Confirmation object contains the form confirmation settings such as confirmation text or redirect URL. It is defined as an associative array.
Usage
$form["confirmation"]["type"]; // returns the confirmation type
$form["confirmation"]["message"]; // returns the confirmation message

Properties

type string
Determines the type of confirmation to be used. Possible values: message, page, redirect

message: displays a simple message
page: redirects to a WordPress page
redirect: redirects to an exterior page

message string
Contains the confirmation message that will be displayed. Only applicable when type is set to message.

pageId string
Contains the Id of the WordPress page that the browser will be redirected to. Only applicable when type is set to page.

url string
Contains the URL that the browser will be redirected to. Only applicable when type is set to redirect.

queryString string
Contains the query string to be appended to the redirection url. Only applicable when type is set to redirect.

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注