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;">&#160;!&#160;</a>

    </xsl:when>

    <xsl:otherwise>

      <a href="" class="forms-validation-message" false;">&#160;!&#160;</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.

 

Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments.

Reply via email to