Creates a date form with the specified date form properties.
Name | Type | Description |
oFormPr | DateFormPr | Date form properties. |
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.SetTime(new Date().getTime()); builder.SaveFile("pdf", "CreateDateForm.pdf"); builder.CloseFile();