I need pop message on catalog item when click o the submit the form

Siva82
Tera Expert

Hi,

I need pop message on catalog item like " Please refer to the links for standard firewall service request . Hence request cannot be submitted." and this not summitted.This page just stay same page and  just pop the msg on the top of the page.

Thank you.

1 ACCEPTED SOLUTION

Hi,

then do this

function onSubmit() {

	// give variable name and the correct choice value
	if(g_form.getValue('variableName') == 'global'){
		alert('Please refer to the links for standard firewall service request. Hence request cannot be submitted.');
		//Abort the submission
		return false;
	}

}

Regards
Ankur

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

View solution in original post

8 REPLIES 8

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

So what script have you started with?

is your validation based on some variable of form?

Regards
Ankur

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

I need pop message on catalog item like " Please refer to the links for standard firewall service request . Hence request cannot be submitted." and this not summitted. This page just stay same page and  just pop the msg on the top of the page.

I have one variable("Please select the type of firewall change required")  on  my catalog item ",

For this varible having 2 choice :- 1. standard

                                                 2.  Global rule modification

I want work this functionality on for 2. Global Global rule modification choice.

 

Can u please help on this. 

find_real_file.png

Hi,

then do this

function onSubmit() {

	// give variable name and the correct choice value
	if(g_form.getValue('variableName') == 'global'){
		alert('Please refer to the links for standard firewall service request. Hence request cannot be submitted.');
		//Abort the submission
		return false;
	}

}

Regards
Ankur

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

Thank you for helping