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
nick8nick8 

How to show Active or Inactive in a VF page

I have a Date field called Term Date, so when it is blank i need to show as Active on VF page or else Inactive, i am not sure how to get an approach on this. 

Thank you 
Raj VakatiRaj Vakati
<apex:commandButton action="{!testAction}" value="Active" disabled="{!If((Term_Date__c==null),true,false)}"/>
<apex:commandButton action="{!d}" value="InActive" disabled="{!If((Term_Date__c),false,true))}"/>