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



Feb 29, 2012, 8:28 PM
26 Posts

Validating Radio Buttons and Read Only Edit Boxes?

  • Category: Other
  • Platform: Windows
  • Release: 8.5.3
  • Role:
  • Tags:
  • Replies: 3
What is the best way of validating radio buttons and read only edit boxes?
 
Radio buttons don't seem to have a required property (no idea why).    Edit boxes have a required property but don't validate the edit box if it is read only (I have a few edit boxes that  populated via button press / dialog box).
 
How do I best validate these fields?
Mar 7, 2012, 12:58 PM
18 Posts
Re: Validating Radio Buttons and Read Only Edit Boxes?
 Just a suggestion.
 
In All Properties of all design elements(eg Radio button) there are  different types of  validators available. May be those types can help you.
Mar 7, 2012, 2:31 PM
272 Posts
Re: Validating Radio Buttons and Read Only Edit Boxes?
Hi,
 
if you are enabling the option "Show disabled control for read-only" for your edit boxes, they will be validated.
 
Hope this helps
Sven
 
Jun 15, 2012, 7:20 AM
26 Posts
Re: Validating Radio Buttons and Read Only Edit Boxes?
There is a more simpler solution to this:
 
you can check the option user has selected. E.g I have a group of 2 radio buttons containing value Yes and No.
 
I can check the value of the the same, using following SSJS code:
 
getComponent("radioGroup1").getValue()=="Yes". Similarly you can also validate it using getComponent("radioGroup1").getValue()== null or getComponent("radioGroup1").getValue()== "". 
 
 
Hope this works for you.
 
 Regards,
Pranesh

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