Field dependency question (solved)

Field dependency question (solved)

I have two fields MFH-Location, and Room Number. Both fields are empty picklists. To set their dependencies, i followed your example here

In my case, instead of a 3 way dependency, its only 2 way. Room Number fields needs to display correct room numbers for the specified MFH-Location dropdown. 

I would rather use your built in CS function, because it will be easier for other members in my team to manage, instead of having to learn more advanced JS. 

I have set the form load rule as specified in the example already linked above. My script differs as follows:

var dependencyObj= {
    "FIELDS" :["MFH-Location","Room Number"],
  
    "VALUES":{
      "Fillmore - Building 1" : ["100","101" ],
      "Fillmore - Building 2" : ["200", "201"]
    }
};
$CS.setFieldDependency(dependencyObj); 

This script, if it will work, will eventually have a few dozen locations, with room numbers in each building ranging from 10 to 30 room numbers. 


NOTE****

As it stands now, upon form load, my MFH-Location drop down populates correctly with the buildings, however when i choose one of the options, the 2nd Room Number picklist does not populate with the room number options, 100, 101, ect.... its just empty. 

Any help or ideas would be appreciated. 

-dale


                  New to ADSelfService Plus?