Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

how to make choice field dependent on reference field in change_request

BheemavarapuTej
Tera Expert

how to make choice field dependent on reference field in change_request WhatsApp Image 2023-10-19 at 09.10.29_4d7035a5.jpgWhatsApp Image 2023-10-19 at 09.10.29_afbcbf19.jpg

2 ACCEPTED SOLUTIONS

Harsh_Deep
Giga Sage
Giga Sage

Hello @BheemavarapuTej ,

 

  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'

test3: sys_id of 'Cyberlink'

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

For your Reference - Please click here to open Link 

 

Mark Correct if this solves your issue and also mark 👍Helpful if you find my response worthy based on the impact.

 

Thanks

View solution in original post

only passe the sys_id 

View solution in original post

2 REPLIES 2

Harsh_Deep
Giga Sage
Giga Sage

Hello @BheemavarapuTej ,

 

  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'

test3: sys_id of 'Cyberlink'

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

For your Reference - Please click here to open Link 

 

Mark Correct if this solves your issue and also mark 👍Helpful if you find my response worthy based on the impact.

 

Thanks

only passe the sys_id