Order Guide restrict only one item to be submitted

Sam198
Mega Guru

Hi all,

I have two separate catalog item added to Order guide "New laptop" "New Desktop", I would like that user can only select/submit one of this either order a laptop or a desktop. Is this possible in Order Guide someway?

1 ACCEPTED SOLUTION

Allen Andreas
Administrator
Administrator

Hi,

You can easily make 2 checkboxes for these catalog items on the order guide.

Then create UI policy that if laptop checkbox is chosen, desktop checkbox is read-only and clear it's value.

Then create another UI policy with the reverse...if desktop checkbox is chosen, laptop checkbox is read-only and clear it's value.

Then in your rule base (where you added those two catalog items), set the condition to be:

laptop checkbox is true for the laptop item

or

desktop checkbox is true...for the desktop item

This way only one will get ordered and not both.

Client script can work too, but it's always best practice to go with UI policy if you can first.

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

View solution in original post

6 REPLIES 6

Harsh Vardhan
Giga Patron

is there any specific user you have , which you want them to use/ see those item ?

 

if yes, based on user criteria you can give a try,

 

for reference kindly have a look on below thread. 

 

https://community.servicenow.com/community?id=community_question&sys_id=f15b1293dbf63f04d82ffb243996...

 

 

Hi Harshvardhan,

No it's not based on user criteria, as this condition will apply to anyone trying to submit the order guide and they should be only able to submit either "New desktop" or "New Laoptop" from the order guide, so probably a client script or some other way.

Allen Andreas
Administrator
Administrator

Hi,

You can easily make 2 checkboxes for these catalog items on the order guide.

Then create UI policy that if laptop checkbox is chosen, desktop checkbox is read-only and clear it's value.

Then create another UI policy with the reverse...if desktop checkbox is chosen, laptop checkbox is read-only and clear it's value.

Then in your rule base (where you added those two catalog items), set the condition to be:

laptop checkbox is true for the laptop item

or

desktop checkbox is true...for the desktop item

This way only one will get ordered and not both.

Client script can work too, but it's always best practice to go with UI policy if you can first.

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Ah great idea, Thanks Allen i will try this.