popup functionality not working in service portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-29-2024 09:54 PM
Hi All,
I want a popup showing a message and if user clicks okay then form should submit ,if clicks on cancel button it shouldn,t.so i have written catalog client script onsubmit .It is working but the issuse is if user clicks on order button in portal popup is opening and it is submitting form .how to stop that here is the code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-30-2024 03:29 AM
The short answer is to do this onChange of a mandatory variable instead of onSubmit. Because Service Portal is asynchronous, the Submit function is not going to wait for the script to go to the server and back. There are numerous posts on the Community about workarounds for this behavior. Some of these will work if you are not able to change it to an onChange script for some reason.