- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2022 10:22 AM
(Rant: ServiceNow isn't that "low-code" at all...)
Greetings.
I'm trying to configure the "Department" and the "Project Lead" fields in such a way that the selection in the "Department" field would determine the user that can be selected in the "Project Lead" field.
- There're only two departments: "PPP" & "CGR". (I thought about using the "Assignment Group" field that comes with the extended "Task" table, but I can't even configure the reference qualifier on the scoped dictionary entry.)
- When "PPP" is selected in the "Department" field, only users who are in the "PPP" department would be available for selection in the "Project Lead" field.
- When "CGR" is selected in the "Department" field, only users who are in the "CGR" department would be available for selection in the "Project Lead" field.
- As for the departments, I've added them to the users' profiles and created the corresponding groups and roles for them.
Would this be possible?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2022 10:31 AM
Hello,
ServiceNow didn't say that everywhere in the platform it's low-code/no-code.
There are other interfaces for this, such as App Engine Studio, Flow Designer, etc.
In any case, you can use a reference qualifier on the Project Lead field that can use the department value (if that value is properly setup to be the sys_id of the department chosen), then the reference qualifier can be:
javascript:"department="+current.field_name;
field_name would be the field name for your department field on the form, again, this works when the department selection results with a value of a sys_id.
And to circle back to low-code/no-code, the above, is extremely minimal code either way.
There's a difference between low-code/no-code and then just not fully knowing the tools and how to use them.
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2022 10:31 AM
Hello,
ServiceNow didn't say that everywhere in the platform it's low-code/no-code.
There are other interfaces for this, such as App Engine Studio, Flow Designer, etc.
In any case, you can use a reference qualifier on the Project Lead field that can use the department value (if that value is properly setup to be the sys_id of the department chosen), then the reference qualifier can be:
javascript:"department="+current.field_name;
field_name would be the field name for your department field on the form, again, this works when the department selection results with a value of a sys_id.
And to circle back to low-code/no-code, the above, is extremely minimal code either way.
There's a difference between low-code/no-code and then just not fully knowing the tools and how to use them.
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2022 11:37 AM
It works!
Thank you very much.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2022 03:51 PM