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



Jun 12, 2012, 2:08 PM
10 Posts

Computing combo box options dynamically based on other field values

  • Category: Server Side JavaScript
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 0
 I have a form with 5 combo boxes, let's call them A B C D E.
 
The options for combo box B are dependant on the selected value of combo box A. 

The options for combo boxes C D E are dependant on the selected values of A and B combined.
 
A and B are working perfectly, however I am having issues with C D and E. 
 
A and B both perform a full refresh in their onChange event (partial refresh was getting messy). 
 
When the form is loaded all fields have the correct options based on the default values of A and B. However If I try to change the selected value in A, issues start to arise. 
 
I have put a print statement in the SSJS code that generates the options for C D and E and it appears that they are looking up the correct value of A, but the previous version of B (when A has been changed).
 
All fields are set to compute their options dynamically. 
 
Can anyone provide some info on the best way to link these fields correctly so they update as expected? 

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