Placeholder text for inputs?
-
How do I add placeholder text? I searched this forum and read I tried this, but it places “Your Name (required)” as the input’s value rather than placeholder.
[text* your-name placeholder="Your Name (required)"]
[text* your-name placeholder:"Your Name (required)"]The docs suggest I can just add them as an attribute in the shortcode but that doesn’t work for placeholders:
You can add any of the setting names plus its intended value as a shortcode attribute for any field to make this field behave differently from the form’s setting.
Contact Form 7 adds placeholders in a similar way:
https://contactform7.com/setting-placeholder-text/Thanks
UPDATE
for placeholders you don’t use a symbol to assign it…
[text* your-name placeholder "Your Name (required)"]
The topic ‘Placeholder text for inputs?’ is closed to new replies.