In service Catalog, I want to Abort/stop submission of request with an customized pop up message/error message when two values are selected as 'No' while clicking on Order Now message

Raju Singh1
Tera Expert

Hi Experts,

In service Catalog, I want to Abort/stop submission of request with an customized pop up message/error message when two values are selected as 'No' while clicking on Order Now message.

Please find the screen shot provided below. Please help me in throwing the pop up message/error message and abort the process when a user clicks on 'Order Now'

What exactly shall I do to make it work.

CreditCard.JPG

Regards,

Raju Singh

1 ACCEPTED SOLUTION

Thanks Raju. Can you mark my answer Correct if it worked for you.



How To Mark Answers Correct From Community Inbox



Please mark this response as correct or helpful if it assisted you with your question.

View solution in original post

8 REPLIES 8

raves12
Kilo Sage

Write below script(adjust as per your requiremennt) in an ONsubmit client script



If(value1 == No && value2 == No){



alert("NY Text");



return false   ;



}


Raju Singh1
Tera Expert

I tired your code.. and here is the screen shot.


When putting this code   and clicking on Order Now button.. Nothing happens.. No Pop Up and the screen just stays there and doesn't go to the next window.



Here is the screen shot of the code.



CreditCard2.JPG



Regards,


Raju Singh


use this



if (g_form.getValue('cc_bus_expense') == 'No' && g_form.getValue('cc_bus_travel') == 'No')


{


alert('The estimated monthly usage is below our threshold');


return false;


}



Please mark this response as correct or helpful if it assisted you with your question.

As always Perfect!!



Works like a charm!!



Thanks a ton Sanjiv!!