<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Style Required Field Differently</title>
		<link>https://legacy.forums.gravityhelp.com/topic/style-required-field-differently</link>
		<description>Gravity Support Forums Topic: Style Required Field Differently</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 01:07:43 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/style-required-field-differently" rel="self" type="application/rss+xml" />

		<item>
			<title>Kevin Flahaut on "Style Required Field Differently"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/style-required-field-differently#post-20277</link>
			<pubDate>Wed, 09 Mar 2011 16:50:40 +0000</pubDate>
			<dc:creator>Kevin Flahaut</dc:creator>
			<guid isPermaLink="false">20277@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for the insight. I do agree with you. I think this can be done better. There are a couple of things like this that I want to improve moving forward and we'll be working on those in one of the post 1.5 releases.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Darfuria on "Style Required Field Differently"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/style-required-field-differently#post-20269</link>
			<pubDate>Wed, 09 Mar 2011 16:21:41 +0000</pubDate>
			<dc:creator>Darfuria</dc:creator>
			<guid isPermaLink="false">20269@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;In fact, I think this is a flaw in the way this is coded to begin with, given an item can have multiple classes.&#60;/p&#62;
&#60;p&#62;Instead of having&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;label for=&#38;quot;input_1_2&#38;quot; class=&#38;quot;gfield_label&#38;quot;&#38;gt;FIELD&#38;lt;span class=&#38;quot;gfield_required&#38;quot;&#38;gt;*&#38;lt;/span&#38;gt;&#38;lt;/label&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;&#60;code&#62;span.gfield_required {color: #FFFFFF; font-weight: bold;}&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;It makes much more sense to have the code rendered as &#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;label for=&#38;quot;input_1_2&#38;quot; class=&#38;quot;gfield_label gfield_required&#38;quot;&#38;gt;FIELD&#38;lt;span&#38;gt;*&#38;lt;/span&#38;gt;&#38;lt;/label&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;That way the entire required field can be targeted, or just the span for the asterisk.&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;EDIT&#60;/strong&#62;&#60;/p&#62;
&#60;p&#62;For now I have settled with the following solution, but I doubt it's the best&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;jQuery(document).ready(function() {
	jQuery(&#38;#39;label.gfield_label:has(span.gfield_required)&#38;#39;).css(&#38;#39;color&#38;#39;, &#38;#39;#800000&#38;#39;);
});&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Darfuria on "Style Required Field Differently"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/style-required-field-differently#post-20267</link>
			<pubDate>Wed, 09 Mar 2011 16:12:54 +0000</pubDate>
			<dc:creator>Darfuria</dc:creator>
			<guid isPermaLink="false">20267@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The span class gfield_required is only applied to the asterisk that is added to a field that is set to required. I'd like to be able to style the entire label, not just the asterisk. Aside from selecting each required field manually by using their li IDs, is there any way I can do this?&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
