Dependant values not working in state choice list

Elisa Mena
Tera Contributor

Hi everyone,

 

Can you please have a look at this? https://www.servicenow.com/community/sysadmin-forum/dependant-values-not-working-in-state-choice-lis...

 

I can't seem to find answers in the Admin forum, and I'm getting obsessed with solving this! 🙂

1 ACCEPTED SOLUTION

@Elisa Mena ok if this is not dependent on any other field, you don't need to create and custom field for that.

There is a free plugin "state flows" in servicenow for your requirement without need of any code. You can install that plugin and create state flows following below servicenow document:

https://docs.servicenow.com/bundle/quebec-servicenow-platform/page/administer/state-flows/task/t_Cre... 


Raghav
MVP 2023

View solution in original post

3 REPLIES 3

RaghavSh
Kilo Patron

@Elisa Mena did you try the solution provided by @jaheerhattiwale . The solution seems correct.

You need to set the "dependent on field" for your state field and the values of that field need to be the dependent value of your state field in sys_choice table.

 

If it still does not work pls share the screen shot of dependent on field, state choice values where dependent value is given and dependent on field choice list.


Raghav
MVP 2023

Elisa Mena
Tera Contributor

Hi, 

 

The thing is that what I want to limit the choices available in the state:

- From Open, only display WIP

- From WIP, only display Closed complete, Pending, Closed incomplete and skipped

- etc.

These values are not depending on any other value and the table sc_task only has the state as available value. I tried creating a field in the table and set it as the dependant but it got worse.

 

https://www.servicenow.com/community/sysadmin-forum/dependant-values-not-working-in-state-choice-lis...

ElisaMena_0-1670595330645.png

 

ElisaMena_1-1670595375811.png

It was then displaying none as a value, and was not displaying all the choices

@Elisa Mena ok if this is not dependent on any other field, you don't need to create and custom field for that.

There is a free plugin "state flows" in servicenow for your requirement without need of any code. You can install that plugin and create state flows following below servicenow document:

https://docs.servicenow.com/bundle/quebec-servicenow-platform/page/administer/state-flows/task/t_Cre... 


Raghav
MVP 2023