ShowTextBox Placeholder

It would help our users to be able to provide placeholder text on a textbox, which shows them an example of a value they might enter.  Currently there does not seem to be an option to provide this to the form element.

3 Comments
RyanWalsh
Crownpeak (Retired)

You can set a default value to textboxes using the "defaultValue" parameter.

For example: Input.ShowTextBox("Textbox Name", "textbox_label", defaultValue: "Modified default value");

For more information please see the ShowTextBox developer documentation

mburgess
Elite Observer

I'm referring to placeholder text rather than an actual value of the form field.

emb-isaac
Returning Observer

Personally I use the helpMessage parameter but I agree - placeholder text is a very common UX element that does the job more efficiently.