I'd like to change the asterisk(*) that denotes a required field to just the text (required) is there anyway that i can do this?
I'd like to change the asterisk(*) that denotes a required field to just the text (required) is there anyway that i can do this?
This isn't possible as a built in feature. It is doable as a customization. You would have to use jQuery to replace the contents of the span that contains the asterisk to whatever you wanted it to be using jQuery scripting.
You could add something like this to your page template.. assuming you are already loading jQuery in your theme of course..
<script type="text/javascript">
jQuery(document).ready(function() {
$(".gform_wrapper .gfield_required").html("* required field");
});
</script>
which gives you something like this..
OR you could do something with just CSS - replace the default asterisk with some type of inline icon.. here's a CSS sample.
.gform_wrapper .gfield_required {
width:16px;
height:16px;
display: -moz-inline-stack;
display: inline-block;
zoom: 1;
*display: inline;
text-indent:-9000px;
background-image:url(../images/myrequiredimage.png);
background-repeat:no-repeat
}
What would be the change necessary to have the color in the first suggestion jQuery inherit from the page's CSS? I'd prefer the text "(required)" too. But the red doesn't work on my page background.
Just a simple CSS change to manipulate the color. There's a CSS sample on the documentation page.
Look for the section titled "Required Field Indicator (Asterisk)"
Where does the asterisk currently live and why can we not just change it (even if in the db) to whatever we want the required field indicator to be?
Usability studies have clearly shown that the single red asterisk is quite often overllooked, creating a less than optimal user experince. We need a way other than loading images and independent scripts to control this simple text. Is it really not possible outside of scripts and images?
@Joe T It's not stored in the database. It's in the core Gravity Forms code. Currently there is no settings option to change or configure this. Because of that the only way to do this is via a simple customization as explained by Kevin above.
Gravity Forms is extremely feature rich, but it will never provide 100% of the functionality that every individual user wants because expectations and needs vary greatly. In those situations it's extremely customizable and can be made to do what you want through the use of customizations.
You could do this using CSS. Will only work on CSS3 capable browsers:
.gform_wrapper .gform_body .gform_fields .gfield .gfield_label .gfield_required:after{
content: " (required)";
}