Forum Discussion
AlanSharkey
12 years agoCommunity Member
Setting an expiry date for published content
Hi there.
As the title says, I was wondering if there was any way to set an expiry date for published content, which would basically stop users from being able to view the content after a specifi...
ZioFonta
Community Member
there are some errors in the story provided by Garth on date validation, when validating date you cannot simply compare each expire value (year, month and day) to actual one, while you must proceed first comparing year, then month, and finally day.
here is a story file that should work well.
I put 2 layers to display the result of validation on each one.
expire date is set in JS but you could also set it by system variable and retrieve those variable when executing the JS.
BjWilson
9 years agoCommunity Member
Thank you for this it works great for CD and web and upgrades to version 2 well