Ability to assign "Default" in advanced values editor: formmenu

Here's a snippet where I have several values in a dropdown

{formmenu: values={=fifteenth_of_the_current_month}, {=first_of_the_coming_month}, {=fifteenth_of_the_coming_month}, {=first_of_the_next_month}, -Manual Entry-; name=startdate}
{note}{fifteenth_of_the_current_month={time: MMMM Do; shift=<M +14D}}{first_of_the_coming_month={time: MMMM Do; shift=>M +1D}}{fifteenth_of_the_coming_month={time: MMMM Do; shift=>M +15D}}{first_of_the_next_month={time: MMMM Do; shift=<M +2M}}{endnote}

I'd like to keep the values in their current order but have the second one "first_of_the_coming_month" be the default. It's easy enough to do this in the regular drop editor but the advanced editor doesn't let you assign a default as seen below. I'd like to request this feature be added in a future update. Thanks!

Screenshot 2024-06-19 111513

Hello Joe,

You could rewrite your menu to use the options instead:

{formmenu: {=fifteenth_of_the_current_month}; default={=first_of_the_coming_month}; {=fifteenth_of_the_coming_month}; {=first_of_the_next_month}; -Manual Entry-}
{note}{fifteenth_of_the_current_month={time: MMMM Do; shift=<M +14D}}{first_of_the_coming_month={time: MMMM Do; shift=>M +1D}}{fifteenth_of_the_coming_month={time: MMMM Do; shift=>M +15D}}{first_of_the_next_month={time: MMMM Do; shift=<M +2M}}{endnote}

This allows you to select a default value when using advanced options, but it won't work in this case because the menu value is using formulas, and due to their nature we don't allow defaults to be such values.

I'll take a note of this and see if there's a way we can improve it to allow such cases.

1 Like

Thank you. I as actually able to get around this by putting the formulas directly into the form as seen below. Now it's working as intended.

{formmenu: {time: MMMM Do; shift=<M +14D}; default={time: MMMM Do; shift=>M +1D}; {time: MMMM Do; shift=>M +15D}; {time: MMMM Do; shift=<M +2M}; -Manual Entry-; name=startdate}

1 Like

Glad to hear it's working now, that's a great workaround :slight_smile:

1 Like