GetInternalId
Returns an internal id of the current form.
Inherited from ApiFormBase.GetInternalId.
Syntax
expression.GetInternalId();
expression - A variable that represents an ApiDateForm class.
Parameters
This method doesn't have any parameters.
Returns
string
Example
Retrieve the unique internal identifier of a date form in a document.
// How do I get the internal ID assigned to a date form in a document?
// Use the identifier to distinguish one date form from another when multiple forms exist.
let doc = Api.GetDocument();
let dateForm = Api.CreateDateForm({"key": "Nowadays", "tip": "Enter current date", "required": true, "placeholder": "Your date here", "format": "mm.dd.yyyy", "lang": "en-US"});
let paragraph = doc.GetElement(0);
paragraph.AddElement(dateForm);
let internalId = dateForm.GetInternalId();
paragraph = Api.CreateParagraph();
paragraph.AddText("Internal id: " + internalId);
doc.Push(paragraph);