- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2020 01:37 PM
Hello!
I am working with the Two-Step Verification pop-up in the Service Catalog, as seen in the screenshot below.
We want to make Delivery Information mandatory for certain items.
Has anyone done this before? I know we can do it by customizing the 'Catalog Checkout' widget, but I was wondering if there was a more configuration-based solution out there? (With them so clearly specifying "Optional" there.. it seems like it makes sense to me that there would be an easy way to swap that to "Mandatory"...)
Thanks!
Duncan
Screenshot:
Solved! Go to Solution.
- Labels:
-
Multiple Versions
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-26-2020 12:31 AM
You can make it fancier if you want, but this will get you started:
- Create copy of SC Shopping Cart
- Create copy of Catalog Checkout (mine is called "copy-of-cat-checkout")
In SC Shopping Cart copy
line 35 Server script: Change to point to your Catalog Checkout Copy ("copy-of-cat-checkout"):
In Catalog Checkout copy
line 28 HTML Template: Remove the "Optional" by commenting out the "<span class="text-muted"> ${(Optional)}</span>". See below.
Line 68 HTML Template: Add condition to make the Checkout button only available if Delivery information is filled in:
Result
If Delivery information is not filled in Checkout is greyed out:
If it is filled in and you click outside the Delivery information field (or tab):
Please reward my efforts and mark as Helpfull and Correct Answer! 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-26-2020 12:31 AM
You can make it fancier if you want, but this will get you started:
- Create copy of SC Shopping Cart
- Create copy of Catalog Checkout (mine is called "copy-of-cat-checkout")
In SC Shopping Cart copy
line 35 Server script: Change to point to your Catalog Checkout Copy ("copy-of-cat-checkout"):
In Catalog Checkout copy
line 28 HTML Template: Remove the "Optional" by commenting out the "<span class="text-muted"> ${(Optional)}</span>". See below.
Line 68 HTML Template: Add condition to make the Checkout button only available if Delivery information is filled in:
Result
If Delivery information is not filled in Checkout is greyed out:
If it is filled in and you click outside the Delivery information field (or tab):
Please reward my efforts and mark as Helpfull and Correct Answer! 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-26-2020 06:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-25-2024 03:19 AM
I'm trying to make the delivery information mandatory, but the solution from 2020 no longer works for me. Can someone advise how this is done now?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-25-2024 09:22 AM
I managed to get this working, it was missing stage to clone SC Catalog Item widget and replace the sc-checkout references to the new cloned version of that widget and then change the sc_cat_item page with this new widget.