FormInsertPr
Form insertion specific properties.
Type
Object
Properties
| Name | Type | Description |
|---|---|---|
| keepSelectedTextInForm | boolean | Specifies if the currently selected text should be saved as the content of the inserted form. |
| placeholderFromSelection | boolean | Specifies if the currently selected text should be saved as a placeholder of the inserted form. |
Example
Use the selected text as a placeholder when inserting a text form.
// How do I create a text form with its properties and insert it into a document?
// Create the ApiTextForm object and insert it into the document using the specified properties.
let textFormInsertPr = {
"key": "Personal information",
"tip": "Enter your first name",
"required": true,
"placeholder": "Name",
"comb": true,
"maxCharacters": 10,
"cellWidth": 3,
"multiLine": false,
"autoFit": false,
"placeholderFromSelection": true,
"keepSelectedTextInForm": false
};
doc.InsertTextForm(textFormInsertPr);