How to sort advanced reference qualifier for a reference field?

Bharati Paidiap
Tera Contributor

I am using a script include for reference qualifier, but now the list should be sorted . Is there any way this can be achieved?

19 REPLIES 19

Ankur Bawiskar
Tera Patron
Tera Patron

@Bharati Paidiapti 

I have shared solution in this post

Issue with ordering

Please check if that works well for you

Regards
Ankur

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

I tried doing this but it doesn't seem to work.

Ujjawal Vishnoi
Mega Sage
Mega Sage

Hi Bharati,

If its a variable then you can user variable element as ref_ac_order_by=orderFieldName

It's not a variable, it's on the form.

User Reference qualifier as below.

javascript:"ORDERBYu_label^u_category=" + current.u_case_number.u_dispatch.u_category+ "^u_field_name=u_billableratecardcategory^u_mapping_type=Value^u_active=true"