
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-02-2024 03:10 PM
I have a request to display a message when a catalog item is active, but the no_order_now box is checked (true). Reading through numerous post I thought the following should work, but I have been unable to have the message display using the following client script. Any suggestions?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2024 08:03 AM
Since the client script doesn't have direct access to the No Order Now fields, using the following AJAX script was able to get this functioning.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-02-2024 03:34 PM - edited ‎08-02-2024 03:36 PM
Hi @stprsbk ,
Please check if UI Type = All
Result : Message is displaying but it will disappear within few seconds.
Note: If this is not something you are looking for, then please explain the business case in details.
-Thanks,
AshishKM
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2024 07:33 AM
Hello @AshishKM,
Thank you for your reply. The UI Type is set to All.
The business case: we have a catalog item individuals use to register for an event. The catalog item is only open during specified times of the year. Previously we had marked the catalog item as inactive, but this confused a few users who were looking for the catalog item. We were asked if we could have it active all year long but only display the Submit button when registration is open. This part is working. But now they want a message with a brief explanation (error message) displayed when the submit button is unavailable. Since we use the no_order_now field to display or hide the Submit button, we are hoping we can use this same field to display an error message to users when the field is 'true'. I have attached our current script, which looks the same as what you had posted, but we cannot get ours to function.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2024 08:03 AM
Since the client script doesn't have direct access to the No Order Now fields, using the following AJAX script was able to get this functioning.