Form : automatically hide a passed date within a select field type ? | Community
Skip to main content
Mathias_Saint-1
New Participant
June 21, 2016
Solved

Form : automatically hide a passed date within a select field type ?

  • June 21, 2016
  • 2 replies
  • 3299 views

Hi Community,

I was currently wondering if it was possible to control the way a date is displayed within a select field type ?

We are currently running several webinars and proposing a unique form. If a date has passed, does it have to be removed manually or is there a way to automatically reach this goal ?

Your inputs are welcome, and I already thank you if you take a few minutes to address this issue !

Thanks.

Mathias Saint-Jean.

Best answer by SanfordWhiteman

Here's a quick demo: MktoForms2 :: Expired DateTime Options

For the purposes of the demo, I assume dates are in UTC and full-day events.  That can all be easily tweaked.

2 replies

Grégoire_Miche2
New Participant
June 21, 2016

Re-bonjour Mathias,

Sorry, I answered too quickly. In a form, you could use some JS to hide some values in the select field when the date is over.

-Gregoire

Grégoire_Miche2
New Participant
June 21, 2016

Bonjour Mathias,

The best place to post question is "products". In Champions, only very few people will see them. See Getting the most of the community when you have a Marketo question

This can be done through Velocity script tokens, not directly on the date itself.

So vote here:

-Grégoire

Mathias_Saint-1
New Participant
June 21, 2016

Bonjour Grégoire,

Thank you for the relevant answer !

Mathias.

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
June 21, 2016

Here's a quick demo: MktoForms2 :: Expired DateTime Options

For the purposes of the demo, I assume dates are in UTC and full-day events.  That can all be easily tweaked.