WordPress.org

Ready to get started?Download WordPress

Forums

Fast Secure Contact Form
[resolved] field name in field (4 posts)

  1. magnoct
    Member
    Posted 1 year ago #

    Is it possible to put field names for text lines and text boxes in the field (not as default text necessarily) such that when the user clicks into the field the field name disappears from within the field. Thanks

    http://wordpress.org/extend/plugins/si-contact-form/

  2. Mike Challis
    Member
    Plugin Author

    Posted 1 year ago #

    How to add a placeholder value to each input field

    For extra fields you can add them with javascript onfocus.

    Example: you have a phone field and want to show an example entry of (xxx)xxx-xxxx and when they click the field it disappears.

    On the form edit page go to the extra field you have for Phone and add a "Default value:" (xxx)xxx-xxxx
    Next, add this to the "Attributes:"
    onfocus="if(this.value=='(xxx)xxx-xxxx')this.value='';" onblur="if(this.value=='')this.value='(xxx)xxx-xxxx';"

    In the soon to be released version 4 you can do this to all fields not just extra fields

  3. magnoct
    Member
    Posted 1 year ago #

    Thanks for the reply. It is the non extra fields that I want to have this working on so I will need to wait till version 4. Hope it is going well!

  4. sazzadmim
    Member
    Posted 1 year ago #

    I think you don't have to wait for version 4. Just mark non extra fields as non required and create extra fields with same name. Easy trick. :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic