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

  1. magnoct
    Posted 3 years 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


  2. Mike Challis
    Plugin Author

    Posted 3 years 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
    Posted 3 years 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
    Posted 3 years 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

  • Fast Secure Contact Form
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic