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

Community Alums
Not applicable

Hi Pradeep ,



Thanks for usefull vedio , here we wanted to make use of table. Bcz in future if they add any new entries to table, then it should be able to take automatically, than configuring choice list.



Regards,


Roopa


Sampath8
Giga Expert

Hi Roopa,



This can be easily done. Please follow the below steps.


1. Right click on service area field > Configure dictionary > select dependent field value as Business technology support. (example: category as shown in the screenshot)


2. Add the Dependent value (drop down value of the Business technology support). Shown in the screenshot, in red. (example: Request is the drop down value of Business technology support)


Capture3.PNG


3. Right click on Name field > Configure dictionary > select dependent field value as service area field.


4. Add the Dependent value (drop down value of the service area field).



Hope this helps. Let me know if any concerns.




Regards,


Sampath.


Community Alums
Not applicable

Hi Sampath,



Thanks for reply,



Here variable type what we have to select.



Regards,


Roopa


As per your requirement, the field should be Select Box/Drop down.




Regards,


Sampath


Community Alums
Not applicable

Those 2 option are not there... type we have taken is string here.



Its in Incident form.



Regards,


Roopa