Show a widget 'on the fly'

2589
1
Jump to solution
05-25-2016 10:23 AM
RafaelFernandez1
New Contributor III

Hi there,

I am developing a new site in my organization using WAB 2.0. When the website is reached for any user, a modal dialog shows up asking for user and password:

Capture.PNG

After the user types his/her credentials, the idea is to validate, then close (hide) the login dialog and then if the user has admin privileges, a new widget will be shown in the app.

Capture1.PNG

But if the user has not admin privileges, then no widget will be shown.

Capture2.PNG

Anybody knows if this approach is doable?

thanks,

Rafael

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Esteemed Contributor

Rafael,

  This thread may help:

How can I toggle the visibility of a widget?

This thread is dealing with showing a hidden widget in the header controller of the foldable theme. But the same principal mat apply to the Launchpad theme it looks like you are using.

View solution in original post

1 Reply
RobertScheitlin__GISP
MVP Esteemed Contributor

Rafael,

  This thread may help:

How can I toggle the visibility of a widget?

This thread is dealing with showing a hidden widget in the header controller of the foldable theme. But the same principal mat apply to the Launchpad theme it looks like you are using.