跳到主要内容

FormPrBase

通用表单属性。

类型

对象

属性

名称类型描述
keystring表单键。
placeholderstring表单占位符文本。
requiredboolean指定表单是否为必填项。
rolestring填写表单的角色。
tagstring表单标记。
tipstring表单提示文本。

示例

This example creates a text form with the common form properties.

// How to create a text form using its base properties.

// Create the base properties and apply them to the ApiTextForm object.

let formPrBase = {
"key": "Personal information",
"tip": "Enter your first name",
"required": true,
"placeholder": "First name"
};
let textForm = Api.CreateTextForm(formPrBase);