How to configure dependent values

Community Alums
Not applicable

Hi All,

In Incident form we have configured 3 fields Names are shown in screenshot

find_real_file.png

and we have created one table as below

find_real_file.png

here we want like based on Business technology Service , Service Area dropdown should populate,

                                                        Based on Service Area, Name field dropdown should populate.

Here we mainly want make use of table , Bcz in future if some values added means that can be updated in this table.

Could some one suggest on this.

Regards,

Roopa

1 ACCEPTED SOLUTION

Hi Roopa


can u pls create a two table one is on Corporate It and another one is Non-AMD Entity as per ur inputs from above posts then create   two tables and create a three fields on the form where ever u want 1.Preliminary caused by business support 2.Incident Caused By Service Area(ref type from first table ) and 3.Incident Caused By Service Area(ref type from second   table) both are same names but change the values of this fields



then write UI Policy or client scripts like this   can u pls adjust the code as per ur field values but ITIL best practice is ui policy



function onChange(control, oldValue, newValue, isLoading, isTemplate) {


    if (isLoading || newValue === '') {


          return;


    }


      var a =g_form.getValue('u_technology_support');//place ur field name here i.e choice type with options


   


        if ( a== 1) {


                g_form.setDisplay('incident_caused_by_service_area', false);   //place ur fields value here


          }


          else


                g_form.setDisplay('u_service_area', false);//place ur fields value here


          }



I hope this will helpful to u


View solution in original post

23 REPLIES 23

Please see the below screenshot.


I think string type should work, it worked for me.



find_real_file.png




Regards,


Sampath.


Community Alums
Not applicable

Hi Sampath,



Yes , even we are getting this, but the thing again we need to create Choice list, Which we dont want, We want to make use of table.



Regards,


Roopa


You can make reference fields dependent as well. That's how assignment group and assign to work on the task table. If you look at the dictionary entry for those fields, you should get the idea.        


Community Alums
Not applicable

Hi Chuck,



Thanks u..



I tried in same way but Area field taking all   the values.



Table we created


find_real_file.png


When we select corporate IT, It should give only Infra and Corp Platforms,   but its taking all 4 values.



Regards,


Roopa


Have you show the dictionary entry for the Service Area field (to show how it is depdendent on the Business Technology Support)



By the way, you appear to have two   entries with Corporate IT/Infrastructure in that list (the first and fourth entries.)