custom Pop up message

pk2184046
Tera Expert

Hi there,

 

I have a requirement based on the variable selected in the record producer. We need to populate the pop up message which should have 4 buttons upon selection we have to redirect to a specific form in the portal.

What is the best way and how can we achieve this ?

9 REPLIES 9

Bhavya11
Kilo Patron

Hi @pk2184046 ,

 

Write  OnChange Catalog Client script.

something like below

function onChange(control, oldValue, newValue, isLoading) {
    if (isLoading || newValue == '') {
          return;

    }
    var type = g_form.getValue('monitoring_type');  
	if (type == 'PDQ');
      top.location.href = '/sp?id=sc_cat_item&sys_id=2ab05f721b129110b7b35284604bcb81';// add your specific page url here
}

 

 

If this information proves useful, kindly mark it as helpful or accepted solution.

 

Thanks,

BK

I was not asking about the redirection I need the custom pop up which has 4 buttons 

Example: we have confirm pop up which has cancel and ok it should be similar 

Ankur Bawiskar
Tera Patron
Tera Patron

@pk2184046 

you can directly take those users to that particular form

why to use buttons for selection?

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

Hi @Ankur Bawiskar 

Since we put a validation based on that user have to redirect to different forms upon the selection 
Please suggest the best way of doing this for Record producer.