Skip to main content
Mathias_Saint-1
Level 2
Jun 21, 2016 12:17 PM UTC
Solved

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

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SanfordWhiteman
SanfordWhitemanAccepted solution
User Group Leader
Jun 21, 2016 8:56 PM UTC

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.

5 replies

Grégoire_Miche2
Level 10
Jun 21, 2016 12:31 PM UTC

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

Translate
Mathias_Saint-1
Level 2
Jun 21, 2016 12:32 PM UTC

Bonjour Grégoire,

Thank you for the relevant answer !

Mathias.

Translate
SanfordWhiteman
User Group Leader
SanfordWhitemanUser Group LeaderAccepted solution
User Group Leader
Jun 21, 2016 8:56 PM UTC

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.

Translate
Grégoire_Miche2
Level 10
Jun 21, 2016 12:41 PM UTC

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

Translate