Enable or disable Web Appbuilder widget based on logged user

202
3
05-13-2020 10:00 PM
Shalineemishra
New Contributor II

In my web application I am able to add widgets and also change the rights of widgets from confing.json file,But this change is permanently. And I want the property of the widget to be enabled or disabled programatically at the run time using java-script API.Please suggest how to do it. 

0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Esteemed Contributor

This is going to be a pretty advanced subject, but I have answered this before:

https://community.esri.com/thread/174605 

Shalineemishra
New Contributor II

Thank you for reply..I am new for Web Appbuilder, so can you please tell which file to add this code.

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

You have to carefully read that thread. The code was added in a custom widgets widget.js file. As I mentioned this is a pretty advanced task.