WordPress.org

Forums

WordPress-to-lead for Salesforce CRM
[resolved] How to clear text field placeholder text on click? (6 posts)

  1. michaelmartinezcampos
    Member
    Posted 1 year ago #

    I have a text input field with placeholder text to indicate where site visitors should enter their email address. Can I edit the code somewhere to have the field clear when a visitor clicks into it?

    https://wordpress.org/plugins/salesforce-wordpress-to-lead/

  2. Nick Ciske
    Member
    Plugin Author

    Posted 1 year ago #

    "I have a text input field with placeholder text"
    How did you accomplish that exactly?

    Which version of the plugin are you using?

    If you want true placeholder support, it's coming in 2.3* - for now I'm not sure what you've done as clearing the placeholder is up to the browser.

    If you used a default value for that... then it's not a placeholder ;-)

    * 2.3 should be released later this month. You can grab the development version here:
    https://github.com/nciske/salesforce-wordpress-to-lead/tree/2.3

  3. michaelmartinezcampos
    Member
    Posted 1 year ago #

    I'll wait for 2.3 to come out then :) For what it's worth, i'm using 2.2.5. The placeholder text says 'you@example.com'. Thanks for the quick reply. You rock, Nick!

  4. Nick Ciske
    Member
    Plugin Author

    Posted 1 year ago #

    Ah, you want a placeholder in addition to the label...

    I'll see if that can work with 2.3 - the setting I was referring to makes the labels the placeholders...

  5. michaelmartinezcampos
    Member
    Posted 1 year ago #

    Hmm, not sure of the difference. I've been able to do it fairly easily using a standard html form and some javascript. In any case, thanks again!

  6. Nick Ciske
    Member
    Plugin Author

    Posted 1 year ago #

    Getting it to work with HTML and a bit of JS and having an intuitive UI that allows any user to do it are worlds apart ;-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress-to-lead for Salesforce CRM
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.