Dependency for choice fields for input form screens?

Sam Motley
Giga Guru

Hi All, 

Can we have the ability to have choice fields depend on reference fields for input form screens?

We have 100's of choices based on a reference field which i cannot select in the app using input form screens which is a blocker now for using parameter screens.

i've tried using DependentInputId as an input attribute but does not work. 

Has anyone managed to get around this? 

 

Cheers, 

Sam 

 

1 ACCEPTED SOLUTION

Sam Motley
Giga Guru

Update on this query : Servicenow support have advised this was never and will never be supported 

 

cheers 

View solution in original post

3 REPLIES 3

Bhaba
Tera Expert

Hi @Sam Motley ,

This can be achieved through Client script as well. But we can also achieve this with the available dependent functionality in dictionary entry.

  1. Go to the dictionary of Choice field (eg. test choice)
  2. From related links Advanced, Add Dependent Reference field (eg. Company)
  3. Now from Dictionary related list, create choices for a 'test choice' field ( choices:  test1, test2, test3, test4, test 5, test 6, test 7)
  4. Now  add Dependent Value for those choices as 'sys_id' of the Reference field value (Eg. Companies: Adobe Systems, Apple, Citrix Systems, Cyberlink)

Test1: sys_id of 'Adobe systems'

Test2: sys_id of 'Adobe systems'

Test3: sys_id of 'Apple'

Test4: sys_id of 'Apple'

Test5: sys_id of 'Citrix Systems'

Test6: sys_id of 'Citrix Systems'

Test7: sys_id of 'Cyberlink'

Test8: sys_id of 'Cyberlink'

  • This way when the 'Company' Reference field value is selected, the respective choices will show in 'Test choice' field

Company: Adobe systems

Test Choice: test1, test 2

 

Company: Apple

Test Choice: test3, test 4

 

Company: Citrix systems

Test Choice: test5, test 6

 

Company: Cyberlink

Test Choice: test3, test7

 

Hope this helps you. Mark the answer helpful if this helped you.

Thanks.

Thanks Bhaba, but this looks to be for the web ui and not the input form screen when developing in mobile app builder?

 

 

Sam Motley
Giga Guru

Update on this query : Servicenow support have advised this was never and will never be supported 

 

cheers