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.

Advanced Reference Qualifier - javascript encoded query string

michaelcory
Giga Expert

When I apply the conditions individually, they both execute successfully. When I try to string them together, it does not work.   Is there some magical way to string them together or is it not possible?   I think I read every wiki and community article published on the subject of encoded query strings but couldn't find how to string them together.   Thank you for any assistance.

This works:   javascript: 'training_room.site='+current.variables.Training_Site';

This works:   javascript: 'attendee_type='+current.variables.attendee_type';

This doesn't work:   javascript: ' training_room.site='+current.variables.Training_Site' +'^ 'attendee_type='+current.variables.attendee_type';

find_real_file.png

1 ACCEPTED SOLUTION

roehltablada
Mega Guru

Hi Mike,



You have an extra ' after ^. Remove that.




Roehl B. Tablada


ServiceNow Technical Architect at Accenture


View solution in original post

3 REPLIES 3

roehltablada
Mega Guru

Hi Mike,



You have an extra ' after ^. Remove that.




Roehl B. Tablada


ServiceNow Technical Architect at Accenture


Hi Roehl,



Thank you.   I removed but still getting all records and not the records per the filter.



find_real_file.png


I had one extra 'tick' at the very end of the string.   Removed that and it works now.   Fussy script.   Thanks for the help Roehl!



Working Now:   javascript: ' training_room.site='+current.variables.Training_Site +'^ attendee_type='+current.variables.attendee_type;


find_real_file.png