I've developing a widget and am working on the Settings panel. I'd like to automatically populate text boxes for the portal that the user is currently working in and their name instead of having them type in in themselves. What's the way to get this information?
Solved! Go to Solution.
You should be able to find this information on the props object available to all widgets.
props.portalUrl will get the Portal Url.
props.user is an object with all the data about the user. I have found this object sometimes comes in undefined in Developer Edition 1.14 and may still be an issue in 1.15.
You should be able to find this information on the props object available to all widgets.
props.portalUrl will get the Portal Url.
props.user is an object with all the data about the user. I have found this object sometimes comes in undefined in Developer Edition 1.14 and may still be an issue in 1.15.
Thanks! I hadn't thought to examine the props object more carefully.