+ Start a Discussion

Detecting expiration date in visualforce


I have table displayed in below manner.

My usecase is, User will specify the end date.

and if this end date is passed then the text1 should be set to Text2.

I could do it in visualforce page, but I do not want to check this condition everytime a action is taken on page. Is there any visualforce capacity i could use ?
Best Answer chosen by Simrin
There is nothing built in to VisualForce that does this.  You would either have to do this via Javascript (if you do I recommend using MomentJS [1]) or doing this in the Apex Controller and call the action onChange of the text box.

[1] http://momentjs.com/