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
sharvsharv 

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
@sharv
  
Please check the below reference

https://salesforce.stackexchange.com/questions/243876/dynamic-component-creation-in-lightning-web-components
https://salesforce.stackexchange.com/questions/244847/not-able-to-render-dynamic-lightning-web-component
sharvsharv

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