SetTipText

SetTipText(sText) → { boolean }

Inherited From: ApiFormBase#SetTipText

Sets the tip text to the current form.

Parameters:

Name Type Description
sText string

Tip text.

Returns:

Type
boolean

Example

Copy code
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();

Resulting document