You need to sign in to do that
Don't have an account?
KNK
Disabling button on specified condition
Hi Team,
I want to enable this button for only current year and next year, how can i acheive this.
<apex:commandButton disabled="{!Year < 2012 }" action="{!addProduct}" value="Add Product" />
Hi All,
Thank you for the replies, it is resolved by using below one.
<apex:commandButton disabled="{!sp.Year<(Year(today()))}" action="{!addProduct}" value="Add Product"/>
All Answers
Hi
try this
<apex:commandButton action ="{! method name}" value ="" rendered ="{if(Year(currentdate)<2012,false, true)} " />
Hi Siva,
Thanks for you response, currently the mentioned one is working but again i need to change it for every year.
Hope you got my point.
Do you Explain your requirement clearly.
Where your Entering the Year.
Hi
Try this
Did this post answers your question if so please mark it as solved
Thanks
Hi Ashish,
If i use this <apex:commandButton action ="{! method name}" value ="" rendered ="{if(Year(currentdate)<Year(currentdate)-1,false, true)} " />
I am not able to see the button for the current year too
Now try this and let me know whether It works or not
Hi All,
Thank you for the replies, it is resolved by using below one.
<apex:commandButton disabled="{!sp.Year<(Year(today()))}" action="{!addProduct}" value="Add Product"/>