I found it was easy enough to change the exclamation to anything else.
The relevant snippet is in the form-field-styling.xsl
In this section, replace the "!" with the symbol of your choice. I
chose a cap X.
<xsl:template match="fi:validation-message">
<a href="#" class="forms-validation-message"
onclick="alert('{normalize-space(.)}');return false;"> ! </a>
</xsl:template>
On 11/16/2011 3:08 PM, Gary Larsen wrote:
[using 2.1.9]
I think the styling is buried in the cocoon-forms-block jar so if you locate
the source you can change it there and recompile. Use Firebug to determine
the CSS class used.
What I ended up doing is make my own copies and modifications to the form
XSL and included a CSS with the following:
.forms-validation-message, a.forms-validation-message:link {
color: red;
font-size: 11pt;
font-weight: 900;
}
It increases the font a bit and bolds. The 2.1.9 version loses the error
messages when ajax is enabled so all that's displayed is the exclamation.
gary
-----Original Message-----
From: Paul Joseph [mailto:[email protected]]
Sent: Wednesday, November 16, 2011 2:35 PM
To: [email protected]
Subject: where controlled from?
Hi there,
In Cocoon Forms, if a field is required, but if the user does not fill
it in, then the page is re displayed, with a red exclamation mark next
to this required field.
Some users are saying this exclamation mark is too small.
Where is this exclamation mark specified and can I change it easily to
say something larger?
thx.
Paul
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]