SetPlaceholderText

SetPlaceholderText(sText) → { boolean }

Sets the placeholder text to the current form. Can't be set to checkbox or radio button.

Parameters:

Name Type Description
sText string

The text that will be set to the current form.

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.SetPlaceholderText("Your placeholder");
builder.SaveFile("pdf", "SetPlaceholderText.pdf");
builder.CloseFile();

Resulting document