• Resolved barryman9000

    (@barryman9000)


    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)"]

    • This topic was modified 8 years, 9 months ago by barryman9000.
    • This topic was modified 8 years, 9 months ago by barryman9000.
    • This topic was modified 8 years, 9 months ago by barryman9000.
Viewing 2 replies - 1 through 2 (of 2 total)
  • I found a issue that if I use placeholder my input field is not showing with this plugin !

    Update:
    Putting placeholder param at end of other params working fine.

    ===================
    example:

    First field is showing but 2nd field is not showing

    <div class="form-group">
        <div class="col-md-6 col-sm-12">[text* your-name id:contact_name layout:none]</div>
        <div class="col-md-6 col-sm-12">[email* your-email placeholder "Email" id:contact_email]</div>
    </div>
    • This reply was modified 8 years, 6 months ago by Sabuj Kundu.
    • This reply was modified 8 years, 6 months ago by Sabuj Kundu.
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Placeholder text for inputs?’ is closed to new replies.