"And" for multiple options

Hi there, all. So sorry if my question is a repeat, but "and" is such a common word that it's a little hard to search. Is there any way to have "and" appear before the last option in a multiple list? Like if I'm clicking on multiple things I worked on with my patients, I think it would sound a lot better to say "strength, range of motion, and mobility" rather than "strength, range of motion, mobility" in my notes most of the time. Thanks!

Hi again @Britt_Vaughn ! :slightly_smiling_face:

Yes, there is a way to do that! Take a look here:

Thank you so much. I'm trying to figure out the best way to do this... when I copy this in, it shows up twice. The original boxes show up like always, and then the following code makes it show up again with the proper format. But when I tried to convert that over to my list, I can't make it give me a list where the "and" is only before the last one. I was able to make it say "and" each time instead of a comma, but it wouldn't let me change just the last one. I did check out the linked page on formmenu, but I'm afraid I'm not yet proficient at extrapolating what I should do for my situation in order to get the result I want. If you are able to offer any advice on getting this to work, I'd really appreciate it. Thank you!

Here's what I want it to look like, if I select all of the options:

(verbal, visual, and tactile) cuing for (posture, form, motor control, and speed)

@Britt_Vaughn Gaurang's suggestion is the right one but it sounds like not enough detail was given for you to set this up.

There's two different ways that you can approach this. I personally suggest the second recommendation below, but I'll give you both options so you can decide what works best for you.

1) Gaurang's suggestion, but with some added clarity
When you have a dropdown menu, the menu itself will be included in the output of your snippet. You're seeing it twice based on what Gaurang suggested because his suggestion had both the menu itself AND the join command he suggested.

If you were to put the dropdown menu inside of a note command, that would show you the menu when you use the snippet but it wouldn't be output. That would look like this:

{note}{formmenu: one; two; three; four; five; multiple=yes; name=example}{endnote}{=join(example, "BLAZE_AND")}

^^ while the preview shows this twice, if you were to use this snippet it would only output the text once since the first version, the menu, is inside that note command.

2) use the formatter setting in your menu
This is essentially the same thing, but rather than separating it into two parts it combines them into a single item.

{formmenu: one; two; three; four; five; multiple=yes; name=example; formatter=items -> join(items, "BLAZE_AND")}

^^ here, you can re-use my example by just replacing the menu options (one; two; three, etc...) with whatever options you want.

Let me know if this wasn't clear. If it'd be helpful to you to talk this through live, feel free to reach out to me at andrew@blaze.today to set up some time with me, too.

1 Like

That is perfect, Andrew. Thank you so much for the clarification and alternate method. I found the second to be very easy to implement. I appreciate you both.