Anyone know of an easy way to denote optional fields instead of denoting required fields. My forms usually contain mostly required fields, so I’d rather indicate which fields are optional instead of having a ton of fields marked required.
Hey,
First, you can use the following CSS to change the “Required” text to “*”, or you can remove it so that the required fields won’t have any indication.
jQuery(document).ready(function ($) {
// Change the * to space if you want to hide the indication
$(".gfield_required.gfield_required_text").text("*");
});
Now, when you add an optional field, you can include “Optional” or any other text you prefer to indicate that field.
Give it a try, and let me know how that goes!
1 Like
Not a bad solution. Would be a nice option in the form settings “Display Required or Display Optional”.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.