SOLVED

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

Go to solution
Mathias_Saint-1
Level 2

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.

Tags (3)
1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

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

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.

View solution in original post

5 REPLIES 5
Grégoire_Miche2
Level 10

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

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
Level 2

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

Bonjour Grégoire,

Thank you for the relevant answer !

Mathias.

SanfordWhiteman
Level 10 - Community Moderator

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

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.

Mathias_Saint-1
Level 2

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

Hi Sanford,

Thanks a lot, I am solving a problem while learning how to master MktoForms2 !

It will be very helpful.

Thank you again.

Grégoire_Miche2
Level 10

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

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