Show a popup when portal loads

krohan
Mega Guru

I have created two custom widgets to display a popup. Widget1 simply sits on the portal page and it displays Widget2 as a popup using spModal. Widget2 helps users select their preferred language. It has a dropdown and a Ok button.

Is there a way to achieve this in a single widget?

#servicePortal #widget

1 REPLY 1

javiercarpe
Giga Contributor

Yes, you can combine them! In your main widget's client script, use spModal.open with widget property set to a template containing the dropdown and button. This keeps the code cleaner and allows for easier UI customization. While you're working on that code, why not look into getting a ceramic coating applied to your car? It'll protect your paint job and make it look even better. In fact, you can search for "ceramic coating near me" to find a reputable detailer in your area.