Skip to main content

GetFormsByTag

Returns information about all the forms that have been added to the document with specified tag.

Syntax​

expression.GetFormsByTag(tag);

expression - A variable that represents an Api class.

Parameters​

NameRequired/OptionalData typeDefaultDescription
tagRequiredstringThe form tag.

Returns​

ContentControl[]

Example​

window.Asc.plugin.executeMethod ("GetFormsByTag", ["{tag}"], function (data) {
for (var i = 0; i < data.length; i++) {
if (data[i].InternalId == "5_556") {
this.Asc.plugin.executeMethod ("SelectContentControl", [data[i].InternalId]);
break;
}
}
});