[Help] Creating a pop-up on a catalog item

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-24-2017 06:34 AM
Hello,
I have a catalog item I would would like to create a pop-up for once a user presses a specific button or value is entered.
For example:
Once the user inputs a value into a specific field I would like the user to be prompted with a pop-up that doesn't allow them to go further until I've pressed "Okay" or "I agree.", in this case it will contain information about "terms of use" that applies to what the user is ordering via the catalog item.
Any Ideas?
Kind Regards,
Jordan
- Labels:
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-24-2017 06:41 AM
Hello Jordan
For this requirement, all you need is a On-change client script and a Confirm scripting validation.
Scripting alert, info, and error messages
Let me know if you need any help with scripting
Please mark my response as correct and helpful if it helped solved your question.
-Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-24-2017 06:50 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-24-2017 07:08 AM
Is there a way to modify the script so if the user presses cancel the catalog item closes or the value inside "justification" wipes, this way the user can not submit the form.
Kind Regards,
Jordan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-24-2017 07:25 AM
Hi Jordan,
You can use one of the following above the "return false" part, if you have one:
g_form.setValue('my_field', '');
or
g_form.clearValue('my_field');
If you share you script, we'll be able to comment on it.
harel