Form Date as variable

Good Evening,

Is there any way to capture a previously entered form date and reuse it later on within the same snippet?

IE. I have a snippet that uses a date for a future appointment in the subject line and then jumps into the body for further information. I am hoping that I can set that date once and each further usage would be identical. Previously (and currently) I was typing the information into a form field and reusing it, but the new form date fields make so much more sense to use.

Thanks for all you do!

Hi @Devon_Schronce,

{formdate} takes the name setting too, so you can do the exact same thing you were doing with the {formtext} command:

{formdate: MMMM Do, YYYY; name=mydate}

This is the date I entered in the date selector above: {=mydate}

If you're asking how to re-use a date after you've inserted a snippet, that would be pretty difficult (if not impossible) to do, based on the use case.

Yes! That's exactly what I needed to do. I've used name in so many places it just never clicked to try it with a date.

Thanks!

1 Like

You're most welcome :slight_smile:

Here's something a tad more advanced. You can re-use that date in a different {time} command with a different time format.

{formdate: MMMM Do, YYYY; name=mydate}

This is the date I entered in the date selector above: {=mydate}

And here is my date formatted differently: {time: dddd [the] Do [of] MMMM, YYYY; at={=mydate}; pattern=MMMM Do, YYYY}

2 Likes