|
Hi,
I get an alert on clicking the exclamation mark in a form, when there is a validation error for a required field widget. The alert has a message general.field-required. Is it possible that I can change this alert message. I want this error message only for required fields. The other places I would have the error message that I set in the setValidationError(“Error Message”) method. I tried tweaking the forms-field-styling.xsl and added the following code snippet there : - <xsl:choose> <xsl:when test="@required='true'"> <a href="" class="forms-validation-message" field , should not be left blank');return false;"> ! </a> </xsl:when> <xsl:otherwise> <a href="" class="forms-validation-message" false;"> ! </a> </xsl:otherwise> </xsl:choose> </xsl:template>
Still this does not work . Can someone suggest me where I could be wrong. Also, is this the right approach for having our own custom error message.
Regards, Anand.
|
- Re: Validation Error Alert anand.vasudevan
- Re: Validation Error Alert Joose Vettenranta
