I needed to hide/show a field based on a target date field. I'll attach my patch in the first comment below, not sure if it's how you would want implement it.

For instance I wanted to hide a link to buy tickets to any event until after the on sale date.

Comments

jphelan’s picture

StatusFileSize
new4.03 KB
jphelan’s picture

StatusFileSize
new4.13 KB

It was throwing an error on views pages.

rooby’s picture

Issue summary: View changes
Status: Active » Needs review
Time has come’s picture

This patch is a lifesaver for Fivestar users who need a scheduling or expiration function. Nothing else allows you to put a timeframe on voting/rating if you're not a coder at the moment.

I'd like put my vote in support of rolling this patch into the main release package.

I can get the patch's 'hide' before or on a certain date condition to work, but the 'show' condition threw an error for me.

Notice: Undefined index: value2 in ffc_condition_execute_show_target_date_time() (line 273 of /sites/all/modules/ffc/ffc.module)

It's still a very useful feature. Thanks for the patch!

knalstaaf’s picture

Status: Needs review » Reviewed & tested by the community

Works like a charm.