order guide issue in service portal

Nitin_NOW
Tera Guru

Hello everyone

i have a small issue in our Order guides. Whenever a user tries to create a order guide without selecting any one of the check boxes ( catalog items ) on the form and if he hit 'Choose options', it displays a message on the top 'The order guide resulted in no items being selected for order' and redirecting the user to categories page to start again.

find_real_file.png

I believe this is the OOTB functionality on every one's instance. My issue here is, I don't see this scenario in Service Portal. Whenever a user tries to create a Order guide, even though none of the items are checked, it allows the user to submit the form and a REQ is generated. I see we are using 'Submit' UI action button on the order guide to create the Request instead of 'Choose Options' button. Also, I do not see any client script using 'addInfomessage()' to display the message on top.

Where do this message actually written ? Is this in 'Choose Options' UI page. I don't see this in Choose options UI page.

Ultimately, I'm looking to set the same functionality of submitting/throwing error for an order guide via SP. Any thoughts on this will be appreciated

3 REPLIES 3

Nitin_NOW
Tera Guru

Hello Team



Any thoughts on this ?



Regards!


randrews
Tera Guru

OOB order guides suck out of the SP.. why we don't use them... so i can't tell you how to fix it in just service portal... HOWEVER i can tell you a relativly easy way to fix the issue everywhere...



create a label above the list of things they need to select one of...



now create a ui policy that sets the label to mandatory if all of the options are none/false   <none for select boxes false for true/false>


add in an if true script that adds a field info message on the first item that says please select at least one item..


add an if false script that clears the field message...



now they won't be able to submit the order guide without selecting at least one option and the label will have a mandatory marker.


Thanks Raymond for quick reply. Appreciate it. I resolved the Issue by writing a onSubmit client script with alert() method in it. So now whenever a user tries to submit the order guide without selecting any of the checkboxes it throws an error and doesn't allow the user to submit the form. This is working in a right way now.



Regards!