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
ssssssss 

how to enable button while selecting a picklist value and date filed

hi,

 

In my applicaiton i already disabled "save" button and when we enter a value in inptutFiled save button was enabled.

In input filed it is happend.But in picklist and date fields while  selecting a value save button is not enabled.So plz tell me how to enable button while selectin a picklist and date filed values.

 

my sample code is aaas follows.here SFN_Number__c is text filed and Clearing_Category__c is picklist in salesforce.

 

 VF page code:

<apex:inputField id="sfn" value="{!Sea_Foot_Note__c.SFN_Number__c}">
                   <apex:actionSupport event="onkeyup" action="{!disableEnable}" rerender="buttonSection"/></apex:inputField>

<apex:inputField id="category" value="{!Sea_Foot_Note__c.Clearing_Category__c}">
                       <apex:actionSupport event="onkeyup" action="{!disableEnable}" rerender="buttonSection"/></apex:inputField>

 

controller:

 

public void disableEnable()
 {
  setButtonStatus('save', ENABLED);
 }

 

 

Thanks in advance,

manu..