CreateDateForm
function CreateDateForm(oFormPr: DateFormPr = null): ApiDateForm
Description
Creates a date form with the specified date form properties.
Parameters
Date form properties.
Returns
ApiDateForm
Try It
var oDocument = Api.GetDocument();
var oDateForm = Api.CreateDateForm({"key": "Nowadays", "tip": "Enter current date", "required": true, "placeholder": "Your date here", "format": "mm.dd.yyyy", "lang": "en-US"});
var oParagraph = oDocument.GetElement(0);
oParagraph.AddElement(oDateForm);