- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-04-2017 01:56 AM
Hello,
I've been looking into using Modal Windows to give me a pop up type function with in Service Portal. My aim is to have a Modal Window pop up when a user selects a record producer then they have to select OK before it will load the record producer.
I've played around with Modal Windows and have managed to display a message box after you click a button but how might I get the message box to automatically load before continuing onto the record producer?
Or should I be looking at a different method to achieve what I'm after?
I see your name a lot Nathan when looking into all this, just wondering if you might be able to help me understand? nathanfirth
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-04-2017 03:18 PM
Chris,
Record producers can have widgets embedded as a variable so that you can have the widget render the modal on only specific record producers. Have you seen my tutorial for modals?
https://serviceportal.io/modal-windows-service-portal/
Since the modal is opened from the controller, you can just have it open right away without the function call... and then the buttons can just call another set of functions in the controller that will either close the modal or redirect you back to the catalog homepage.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-04-2017 03:19 AM
I've managed to get a step further! When selecting the record producer from the service portal the widget will load with the message with agree and disagree buttons. Where i'm a little stuck now is how to capture which button is selected and when disagree is selected the user is returned to the service catalog.
Anyone have any ideas?
Thanks
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-04-2017 03:18 PM
Chris,
Record producers can have widgets embedded as a variable so that you can have the widget render the modal on only specific record producers. Have you seen my tutorial for modals?
https://serviceportal.io/modal-windows-service-portal/
Since the modal is opened from the controller, you can just have it open right away without the function call... and then the buttons can just call another set of functions in the controller that will either close the modal or redirect you back to the catalog homepage.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-30-2021 08:32 AM
could you share the code to create a widget popup in service portal record producer when a variable value is no and when you close that widget should redirect to another page without submitting the form.