跳到主要内容

FormPrBase

通用表单属性。

类型​

Object

属性​

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

示例​

创建具有通用表单属性的文本表单。

// 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);