Need to display the options based on values populated in another variable

suuriyas
Tera Contributor

HI Community,

 

I have a requirement, in catalog form we have these variables business controller approver and select approver 

Business controller approver field will auto populate based on the reporting unit selected in the form

now i want the populated values to be display as the option in select the approver field

For example in form x reporting unit is sleected and the user populated in controller approver as A and B then only these two user A and B need to be as a option in select the approver variable 

suuriyas_0-1743510477669.png

How can we achieve this

1 ACCEPTED SOLUTION

@suuriyas 

so it should show approver from variable "business_controller_approver" and the approver/user present in the field "vendor_business_controller" on reporting unit table

then do this, ensure you give the correct variable name for reporting unit

javascript:'sys_idIN' + current.variables.business_controller_approver.toString() + ',' + current.variables.reportingUnitVariable.vendor_business_controller.toString();

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

9 REPLIES 9

Shivalika
Mega Sage

Hello @suuriyas 

 

You need to add dynamic filter conditions. 

 

Something like below 👇 

 

REF=javascript:current.REF

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket. 

 

Regards,

 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY

 

 

 

 

 

HI @Shivalika ,

 

Thanks for replying

Can you please elaborate more on this what i need to do as i can see like this

suuriyas_0-1743513525722.png

 

Hello @suuriyas 

 

The screenshot is not clear. 

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket. 

 

Regards,

 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY

@suuriyas 

Did you get a chance to check my below response?

AnkurBawiskar_0-1743513860774.png

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader