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 18, 2013, 5:41 PM
68 Posts

validate a combo box?

  • Category: Server Side JavaScript
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 2

I have an xPage that needs validation.  I can add required validators to radio button groups and edit boxes that work fine, but validators are being ignored on combo boxes.  Is there a trick to validating combo boxes?

Thanks in advance!

Sep 18, 2013, 6:13 PM
17 Posts
add validateRequired for the validators property

Not sure why there is not a Validation tab associated with Combo Boxes, but there's not.

Go to the properties of the combobox and select All Properties tab.

Expand the data section. For the "validators" property, click to add a validator and choose validateRequired.

Type in the message.

That should be it...

Sep 18, 2013, 7:43 PM
68 Posts
yes, it *should* work, but it doesn't

It doesn't work "as is".  I did get more success by adding the dijit.form.Combobox property, THEN the validateRequired works mostly as expected.  But now I want to check it before it's saved - using currentDocument.getItemValueString just gets the back-end value.  getComponent doesn't for me, either.

So, what's the best way, in a combobox field (I could also do this with a button if necessary) to get the front-end value of a field for validation?


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