Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Parent category in forms

SibeH
Kilo Contributor

Hello! I would like to connect category with subcategory from the category model table with reference qualifier. I wrote something like this but isn't working. Can someone help me please?
javascript: "u_subacategory=" + current.name + "category=" + current.parent_category;

1 REPLY 1

Brad Bowman
Kilo Patron
Kilo Patron

Is your custom field really named 'u_subacategory'?  You'll also need an AND symbol (^) prior to category, so try something more like this:

BradBowman_0-1712150474010.png

This is assuming that there are populated fields named name and parent_category on whatever form this is, and the value of name matches the value of the custom subcat field.