Service Portal

Ajith A Pillai
Tera Contributor

Hi All,

 

I have a requirement in the service portal customisation.

I have created an order guide which includes two catalog items. My Requirement is when user is trying to submit the order guide after filling the mandatory fields when click on the next button in the choose option section, I need to disable the included option only for this order guide (rest of the order guide needs to be enabled this option)and the next button needs to be active then the requestor can submit the order guide. But here the problem is I have unchecked the show toggle option from the order guide, but the next button is not working for this order guide, when I click on the next buttion nothing is happening. Anyone has any idea on this, please help with the steps to achieve this. Attaching the screenshot for the reference.

 

Thanks in advance

 

Regards

Ajith A Pillai

2 REPLIES 2

Ramz
Mega Sage

Hi @Ajith A Pillai ,

 

If you have checked the 'Show include toggle' checkbox to false then there will be no toggle seen at all. Check any customisation has been done on the widget which is making the toggle button to be seen.

Thanks. 

Its_Azar
Tera Guru

Hi there @Ajith A Pillai 

 

Firstly, you'll want to identify the Catalog Item IDs for the items included in your order guide With these IDs in hand, you can create a client script within the ServiceNow platform to handle the disabling of the included option for the specified order guide.

The client script should be designed to run when the user interacts with the "Next" button in the choose options section.

. If it does, it will disable the included option; otherwise, it will ensure that the option remains enabled for other order guides.

Furthermore, you'll need to attach an event listener to the "Next" button using JavaScript to validate that all mandatory fields are filled before allowing the submission of the order guide. If any mandatory fields are left unfilled, an error message should be displayed prompting the user to complete them before proceeding.

 

If this helps kindly accept the response thanks much.

☑️ If this helped, please mark it as Helpful or Accept Solution so others can find the answer too.




Kind Regards,

Mohamed Azarudeen Z

Developer @ KPMG

 Microsoft MVP (AI Services), India