Sets the tip text to the current form.
Name | Type | Description |
sText | string | Tip text. |
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.SetTipText("Enter your date"); var sTipText = oDateForm.GetTipText(); oParagraph = Api.CreateParagraph(); oParagraph.AddText("Tip text: " + sTipText); oDocument.Push(oParagraph); builder.SaveFile("pdf", "SetTipText.pdf"); builder.CloseFile();