SOLVED

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

Go to solution
Highlighted

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
Highlighted
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
Highlighted

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

Highlighted

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

Bonjour Grégoire,

Thank you for the relevant answer !

Mathias.

Highlighted
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

Highlighted

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.

Highlighted

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