LogiUpSkill

Dependent Choice Field in ServiceNow

What is choice field?

A Choice field is a predefined dropdown list that restricts user input to specific allowed values. These choices are stored in the sys_choice table. 

What is a Dependent Choice Field?

Dependent Choice fields change their values based on another field. 

Scenario: -

college management system wants to store student details. While creating a student record, the user should first select the State, and based on the selected state, only the relevant districts should appear in the district dropdown. 

Steps For Dependent Choice Field?

    1. Open instance 
    1. System Definition > Tables 
    1. Create new table with fields: – 
    • Name(String) 
    • Rollno(String) 
    • State(Choice) 
    • District(Choice) 
    1. Right click on state > configure dictionary > choices related list > New > Add choices. 

                                                                                              

    Choice 

    Dependent Value 

    Maharashtra 

    MH 

    Rajasthan 

    RJ 

    Gujrat 

    GJ 

    1.  Submit. 
    1. Right click on District > configure dictionary > choices related list > New > Add choices 

     

    Choice 

    Value 

    Sequence 

    Dependent value 

    Mumbai 

    Mumbai 

    1 

    MH 

    Latur 

    Latur 

    2 

    MH 

    Raipur 

    Raipur 

    1 

    RJ 

    Kota 

    Kota 

    2 

    RJ 

    Surat 

    Surat 

    1 

    GJ 

    Baroda 

    Baroda 

    2 

    GJ 

    1. Advance view > Dependent field > click on use Dependent field > from dropdown select Dependent field (state) > submit > check results. 
  • Dependent Choice filled created successfully. 

Conclusion: -

Choice fields are essential in ServiceNow development because they help maintain structured and consistent data. They are widely used in Incident, Change, Problem, and custom applications. Understanding choice fields is important for both ServiceNow developers and administrators. 

Dependent Choice Field in ServiceNow

Leave a Reply

Your email address will not be published. Required fields are marked *