Object PmfString
Description:
This object represents one form item of the type: Text input.
Properties and methods of this object:
| BgColor | The property returns or sets the background color of the window for entering the value of the PmfString object |
| EditType | Editing type |
| Format | The property returns or sets the format of the value that will be displayed in the object |
| Multiline | Enable/disable displaying the text on more than one line |
| Subtype | Text inputbox type |
| TextColor | The property returns or sets the color of the text in the value entry window of the PmfString object |
| Value | Pmf object value |
| ValueHorzAlign | The way of horizontal text alignment |
| ValueVisible | The property returns or sets the visibility of the window for entering the value of the PmfString object |
Properties and methods that are common to all objects of the PmfObject type:
Events:
| onEditAccept | Is triggered after the editing is finished and the edited value is saved |
| onFocus | Is triggered if the Pmf object gets or loses focus |
Example1:
Script creates one form item. It is presumed that the oForm object already exists.
JavaScriptSelect and copy to clipboard
var oStr = oForm.CreateItem("string", "id_str");
oStr.Value = "Test";