I'm trying to create a input and drop down field with the title in the box already. Similar to http://me.com
I'm trying to create a input and drop down field with the title in the box already. Similar to http://me.com
See if this post helps:
http://www.gravityhelp.com/forums/topic/label-placement-in-field
Thanks I will check that out. Is there a way to set a default value for a drop down field?
Well, the "default value" for a drop down field upon creation is the first choice of the drop down. Care to share a little more details?
by default in the twentyeleven theme is js installed?
Sure! Thanks so much for helping me out so quickly Rob! The site is http://montcocomputers.com the "Make" and "model" fields are the ones I'm trying to get to "clear" when someone attempts to enter in text. I've switched to the "twenty eleven" theme to try and pin pointe where the issue is coming from. I've set the default text for each field and I've added the CSS Class Name "clear it". I've also added the script below to the "twenty eleven" header.php (the first line of head.php is where I added the script:
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery.fn.cleardefault = function() {
return this.focus(function() {
if( this.value == this.defaultValue ) {
this.value = "";
}
}).blur(function() {
if( !this.value.length ) {
this.value = this.defaultValue;
}
});
};
jQuery(".clearit input, .clearit textarea").cleardefault();
});
</script>
All my plugins are disabled and I've using GF Version 1.6.3.3.4
I don't see Make or Model fields on that URL you provided.
I actually got it fixed. Sorry I may have been working on it when you tried to preview it. I do have one additional question if you have time to look into it. For the Drop down menus I have the default value at "Select a Product" I want this to be the title...not an actual drop down value. Is it possible to have a default name like in the form fields? My concern is that people will submit the form and not be required to "Select a Product" Thanks
Anyone? :)
See this post here:
http://www.gravityhelp.com/forums/topic/drop-down-list-default-value-and-error-checking
Thank you!!!!
No problem, glad to help out!