function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

External url button want to hide when status is active

hey guys,

In my org there is button called X(suppose it) i have to hide that button when status is active and unhide it when status is not active but the thing is button is a external url in community site so how i can complete this with the help of LWC(.js) without using html ..
Mahesh GorrepatiMahesh Gorrepati
Please check the below reference

There is a button on community site item button that we have to show and hide by  giving it some conditions 

if(subscription status === active ){
we have to hide that X button 
else {
we have to show that x button
by using lwc without we can use js for it