Sets a key to the current form.
Name | Type | Description |
sKey | string | Form key. |
builder.CreateFile("pdf"); var oDocument = Api.GetDocument(); var oDateForm = Api.CreateDateForm({"key": "Nowadays", "tip": "Enter current date", "required": true, "placeholder": "Date", "format": "mm.dd.yyyy", "lang": "en-US"}); var oParagraph = oDocument.GetElement(0); oParagraph.AddElement(oDateForm); oDateForm.SetFormKey("Date form key"); var sKey = oDateForm.GetFormKey(); oParagraph = Api.CreateParagraph(); oParagraph.AddText("Form key: " + sKey); oDocument.Push(oParagraph); builder.SaveFile("pdf", "SetFormKey.pdf"); builder.CloseFile();