Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Reference Qualifier

nameisnani
Mega Sage

Hi Team ,

 

As u can see in the below image , Here i have added sub- category and application category based on the category selection . it is OK in Platform level . 

SunilKumarPadh_0-1683014108680.png

 

If u can see in the portal it is not showing 

SunilKumarPadh_1-1683014253591.png

 

How to update my reference qualifier 

SunilKumarPadh_2-1683014285834.png

 

My Reference Qualifer 

 

javascript:if(current.variables.subcategory=='CFS Edge') 'element=u_application_category^name=incident^value=Platform Support'; else 'name=incident^element=u_application_category^dependent_value=Lighthouse';

 

 

Thanks

 

@BharathChintala 

@Community Alums 

@Prince Arora 

@Gunjan Kiratkar 

@Sagar Pagar 

@Ankur Bawiskar 

1 ACCEPTED SOLUTION

itsRakesh
Mega Sage

@nameisnani 
Try the below

javascript:if(current.variables.subcategory=='CFS Edge') 'element=u_application_category^name=incident^value=Platform Support'; else if(current.variables.subcategory=='Bottomline SWIFT Gateway')'name=incident^element=u_application_category^dependent_value=Bottomline SWIFT Gateway';else 'name=incident^element=u_application_category^dependent_value=Lighthouse';

View solution in original post

19 REPLIES 19

Prince Arora
Tera Sage

@nameisnani ,

 

I believe you can achieve this type of functionality using "dependent field",  if your field type is Select Box or you have the choices define!

 

PrinceArora_0-1683015261769.png

 

 

Please choose the field as per your use case this is just an example

 

If my answer solved your issue, please mark my answer as Correct & 👍Helpful based on the Impact.

hi @Prince Arora 

 

In Platform level it is working fine , as u can see in my above screenshot , in portal it is not showing

 

SunilKumarPadh_0-1683015687085.png

 

 

Karan Chhabra6
Mega Sage

Hi @nameisnani ,

 

Please add this line in the 'variable attributes' , it'll work

ref_qual_elements=subcategory

 

If my answer has helped with your question, please mark it as helpful and correct.

 

Thanks!

Hi @Karan Chhabra6 

 

As per ur instrucations i have added in 'variable attributes ' , not working 

 

SunilKumarPadh_0-1683017750204.pngSunilKumarPadh_1-1683017776679.png

 

Ankur Bawiskar
Tera Patron

@nameisnani 

do these changes

1) update ref qualifier as this

javascript: var query; if(current.variables.subcategory == 'CFS Edge') query = 'element=u_application_category^name=incident^value=Platform Support'; else query = 'name=incident^element=u_application_category^dependent_value=Lighthouse'; query;

2) update variable attributes of subcategory as this

ref_qual_elements=subcategory

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

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