HTML code based on the value received in the Server code

chandan86patra
Tera Contributor
Server code :
var queue= new GlideRecord('wu_location_kiosk');
    queue.addQuery('location_queue',queueId);
    queue.query();
 
while(queue.next())
{
gs.addInfoMessage(queue.name)
}

we are receiving the value A, B , C based on the login user location(gs.addInfoMessage(queue.name)in the server code and we have created A, B and C
buttons in the HTML

case1 if the location is Bangalore, then A, B value received in the server-side code, then only A ,B buttons should display  ,C buttons should be invisible
Case 2 if the location is Delhi then B value received in the server side code then only B buttons should display ,A and C should invisible.

Can you provide me HTML code in ServiceNow portal

0 REPLIES 0