Servicenow Dependent Choice List Selection : Unable to select/chose first choice in the dependent choice list
Servicenow Dependent Choice List Selection: Unable to select/choose the first choice in the dependent choice list on first click.
Use of "-- None --" value asa choices to overcome this Issue as a resolution
The first Value in the dependent choice list field is not selected the first time
We have a dependent choice list field 'Rejection Reason' created on the approval [sysapproval_approver] table which is dependent on the 'task name' field.
Please find below snippet

We have configured choices for the same with dependent values as below

We can see the choices in the 'Rejection Reason' choice list, for example
for Dependent value 'Task Name' = 'Task'
we have below 3 choices configured
1. Task Approval Rejected because DifferentChangee is created
2. Task Approval Rejected because the Task is not needed
3. Task Approval Rejected because Already Resolved


When we select the first choice in the list
here in this case first choice is showing
'Task Approval Rejected because Already Resolved'
but it is not getting added to the list.
However, when we choose another choice
example if we select
'Task Approval Rejected because DifferentChangee is created'
add it and then try adding the first choice
first and then
'Task Approval Rejected because Already Resolved'
then it is getting added to the list.
,Solution/Workaround is
Create the extra choice with the value '-- None --' for each of the dependent TaskNamese.
We are keeping the 'Lable' Empty/blank of the '-- None --' value.
for each dependent value, we need to have extra choice called '-- None --' which is not selectable by default. Even if we select OOTB it is not getting added to the list.
Sincethe first choice is '-- None --' then first choice is coming as '-- None --' and other choices are automatically not coming in the first position and can be selected in the first go.
This is the solution that we are following up.
Thanks,
Ganesh Chindhalore.
ServiceNoww Developer
Comments
Post a Comment