Timeline for How to Show/Hide button based on Profile in Salesforce LWC?
Current License: CC BY-SA 4.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 20, 2021 at 4:37 | vote | accept | lochana | ||
Apr 16, 2021 at 6:41 | comment | added | Phil W | As I said, this is a poor way to do things. And TBH my approach is better even if the entire component is to be "hidden" since it remains robust and allows the admin to grant or remove the ability using standard SF setup without the need for hacky use of profile names. The one thing I like about your answer is the use of "disabled" - the presentation of the button but disabling it when the user cannot deactivate. This could be used with my approach very effectively. | |
Apr 15, 2021 at 23:39 | history | answered | Thomas Winter | CC BY-SA 4.0 |