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



Sep 21, 2011, 11:00 AM
5 Posts

Multiline Edit box

  • Category: Other
  • Platform: Windows
  • Release: 8.5.1
  • Role: End user,Developer
  • Tags: Multiline Edit box
  • Replies: 2
Hi,
  
 How can we validate the mulitiline edit box in javascript. I know we can validate by just selecting "Required field" and  entering the error message in "Required Field error message". But I would like to write a client javascript code to validate
 
Please advise. 
Sep 21, 2011, 11:35 AM
272 Posts
Re: Multiline Edit box
Hi,
 
you can access the value of the multiline box using javascript using this code:
 
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core">
    <xp:inputTextarea id="inputTextarea1" value="123"></xp:inputTextarea>
    <xp:scriptBlock id="scriptBlock1">
        <xp:this.value><![CDATA[var elem = dojo.byId('#{id:inputTextarea1}');
        alert( elem.value );]]></xp:this.value>
    </xp:scriptBlock>
</xp:view>


Hope this helps,
Sven
Sep 21, 2011, 12:19 PM
5 Posts
Re: Multiline Edit box
Thank you so much Sven. Its working perfectly. Need another favor , how can we get the value for the "radio group"? and also is it possible to do multipe file upload ?

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