• Hey guys, so I used Caldera Forms to make a super simple form and styled it how I want, it works great, the only thing is I don’t use labels, I have the “labels” in the textboxes.

    Here is the form: https://subver.com/wp/contact

    Is there a way I can make it so I clear the value onFocus/on click, etc? I’d also love to change the value back to default (“Name,” “Email,” etc) if the user leaves it blank onBlur/clicking off the textbox.

    Wasn’t sure how to go about this.. dunno if it can be done with CSS alone or if I’ll have to edit a PHP file somewhere or what.

    I’ve looked around the files and really don’t know PHP so I dunno what I’m doing as far as that goes. I know it can be easily done with JavaScript but I don’t really know how to go about inserting it. Any help would be great!!

    Thanks so much guys!

Viewing 1 replies (of 1 total)
  • Thread Starter subver

    (@subver)

    Actually wow I’m an idiot, there is an option for it in the plugin itself. BUT, I still am curious how I would go about inserting custom HTML into the form itself.

Viewing 1 replies (of 1 total)
  • The topic ‘Trying to clear input textfield value on focus from a plugin form maker’ is closed to new replies.