You need to sign in to do that
Don't have an account?
Alekya Atluri
how to check condition and disable button
How to check the condition and disable a button in lightning.
Suppose for example I have a object Account and custom field number__c if account.lnumber__c <=0 then edit and new buttons should be disabled.
Thanks in Advance
Suppose for example I have a object Account and custom field number__c if account.lnumber__c <=0 then edit and new buttons should be disabled.
Thanks in Advance
Do you mean, how to disable button in lightning components based on some condition ?, if so here is the code, in aura:if you can check the condition and make the button disabled:
Mark solved if it does help you