Choice List not populating when the dependent value changes. I have requirement to have a list of choices to appear when certain "business services" are selected on incident records. To accomplish this we have configured a set of choice that are de

mattyerian
Kilo Contributor

I have requirement to have a list of choices to appear when certain "business services" are selected on incident records.   To accomplish this we have configured a set of choice that are dependent on the business services.   Currently the only way to get the choice list variables to display is by saving the record.   Is there a method available to get these to change to the new values whenever the "business service" name is changed.   I have looked at the gform.addOption and gform.clearOptions and other items through a client script with little luck.

Any help would be appreciated.

1 ACCEPTED SOLUTION

In the dependent value are you giving the sys_id of the Business application or the direct value




find_real_file.png



I just tested with the reference value and it worked fine. The values are changing dynamically


View solution in original post

14 REPLIES 14

mattyerian
Kilo Contributor

The Sys ID of the business service did not seem to work.   In fact the opposite occurred now the values "keyboard" and "screen" do not show up all



find_real_file.png


Check if there is any client script that is active clearing the options



I implemented the same scenario and it is working fine in dev instance


can you double check if the dependent field is checked in Business service sub category and the Dependent field is set to Business request?


mattyerian
Kilo Contributor

OK,   I was able to get it working when I matched off business service rather than business service name.   Seems to be very finicky.   Will raise support ticket with SN on this.   Thanks


The sys_id won't work for what you are trying to do.



Does the Keyboard and Screen values actually start with a capital letter?   Best practice is lower case, but either way, the value is case sensitive.



Thanks,



Laurie



Please mark Correct, Helpful, or Like as applicable!


Laurie Marlowe1
Kilo Sage

How many business service sub-categories do you have?   If there are A LOT, you might want to consider this approach.



In our CMDB, on the CI form we have the following fields:



Business Unit


Business Service


Business Process



First pick the Business Unit.


Depending on the Business Unit selected, the Business Services that belong to the Business Unit are displayed.


Depending on the Business Service selected, the Business Processes that belong to that business unit are displayed.



This was done using tables and a reference qualifiers and a script include.



If this is something you are interested in, and are unfamiliar with, I can supply more information.



Thanks,



Laurie



Please mark Correct, Helpful, or Like as applicable!