Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Subtype - property of object PmFormItemString

Description:
Text inputbox type.
Syntax:
Subtype As String
Calling:
Set the propert when the item is created:
oFormItem = oForm.CreateItem("string", "Id", "Title", "Subtype:static;");
Writing the value:
oFormItem.Subtype = "static";
Reading the value:
sSubtype = oFormItem.Subtype;
Values:
simple (default) - Simple standard single-row text inputbox.
static - Non-editable static text. Can be used e.g. as note, description, report etc. For this purpose it is often handy to set "TitlePos:no;".
password - The text is displayed as a password, i.e. * char (asterisk) is displayed instead of the entered char.
Note:
Property access for read and write.

It is possible to write into this property only if the PmForm window has not been opened yet.

This property is also functional for Web Panels. It is not functional in InternetExplorer8 and lower.

See also:
Example:
Creating multi-row static note. Example for JavaScript language:
var oItem = oForm.CreateItem("string", "note1", "", "Subtype:static;TitlePos:no;Multiline:1;");
oItem.Value = "Note 1\nNote 2\nNote 3"; //Characters "\n" create new rows.
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice