This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Nov 5, 2014, 11:02 PM
13 Posts

Rich Text validation

  • Category: Other
  • Platform: Windows
  • Release: 9.0.1
  • Role: Developer
  • Tags: Xpages Validation
  • Replies: 0

Hi All

I want to check that a rich text is not blank, I added a ValidateExpression for a rich text to check its content but it doesn't work. How can I validate it?

Thanks in advance

<xp:inputRichText
               value="#{document1.Attachments}" id="attachments1"   style="width:99.0%">

                     <xp:this.validators>
                      <xp:validateExpression
                                  message="Attachment is missing">
                       <xp:this.expression><![CDATA[#{javascript: if (getComponent("attachments1").getSubmittedValue()!== ''){
 
                                     return true
                                      }}]]></xp:this.expression>
 </xp:validateExpression>
 </xp:this.validators></xp:inputRichText>

 


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal