Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Alert message before clicking on submit on a catalog item

Rithu
Kilo Contributor

Hi,

I have added an alert that pop's up when we click on submit button on a catalog item. We should be able to submit a request after we click ok when the pop-up appears for the first time.

Thanks

 

1 ACCEPTED SOLUTION

Dhananjay Pawar
Kilo Sage

Hello Rithu

Insted of Alert use confirm method.

do this in onSubmit

var abc=confirm("Do you want to submit");
if(abc==true)
{
return true;//you can add your code as well.
}
else
{
return false;
}


If it helps you then please mark it as Helpful and correct.

Thanks,

Dhananjay.

View solution in original post

2 REPLIES 2

Harish KM
Kilo Patron
Kilo Patron

Hi you can write onSubmit client script 


var select = confirm("A new Request will be created\nClick OK to proceed or click Cancel to modify the Request details");

if (select == false) {
return false;
}
}

Regards
Harish

Dhananjay Pawar
Kilo Sage

Hello Rithu

Insted of Alert use confirm method.

do this in onSubmit

var abc=confirm("Do you want to submit");
if(abc==true)
{
return true;//you can add your code as well.
}
else
{
return false;
}


If it helps you then please mark it as Helpful and correct.

Thanks,

Dhananjay.