Help with selecting snippets

Hi all,

I would like some help with the following.

Unfortunately, the code below is not working properly. When we select one or more imports in the preview, everything works fine. However, when an import is selected under "ACTIVITEITEN", the same import is automatically selected under "OOK LEUK VOOR JULLIE GROEP".

I want these two sections to work independently, so we can select different imports for "ACTIVITEITEN" and "OOK LEUK VOOR JULLIE GROEP".

Thanks in advance!

ACTIVITEITEN
{formmenu: Actieve spellen; Actieve workshops; Activiteiten op het water; Creatieve Workshops; Culinaire Workshops; GPS Tochten; Ontdek; E-chopper tours; Mega Sup Tour; Fiets tours; Wandel tour; Step tours; Fat bike tours; Boottour; Schooluitjes; Thema feesten; Quiz en games; Proeverijen; Winter activiteiten; Energizers; name=activiteiten; multiple=yes}

{if: contains({=`activiteiten`}, "Actieve spellen")}{import: [actievespellen]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Actieve workshops"); trim=left}{import: [actieveworkshops]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Activiteiten op het water"); trim=left}{import: [activiteitenophetwater]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Creatieve Workshops"); trim=left}{import: [creatieveworkshops]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Culinaire Workshops"); trim=left}{import: [culinaireworkshops]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "GPS Tochten"); trim=left}{import: [gpstochten]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Ontdek"); trim=left}{import: [ontdek]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "E-chopper tours"); trim=left}{import: [e-choppertours]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Mega Sup Tour"); trim=left}{import: [megasuptour]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Fiets tours"); trim=left}{import: [fietstours]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Wandel tour"); trim=left}{import: [wandeltour]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Step tours"); trim=left}{import: [steptours]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Fat bike tours"); trim=left}{import: [fatbiketours]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Boottour"); trim=left}{import: [boottour]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Schooluitjes"); trim=left}{import: [schooluitjes]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Thema feesten"); trim=left}{import: [themafeesten]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Quiz en games"); trim=left}{import: [quizengames]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Proeverijen"); trim=left}{import: [proeverijen]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Winter activiteiten"); trim=left}{import: [winteractiviteiten]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Energizers"); trim=left}{import: [energizers]; trim=left}
{endif}

OOK LEUK VOOR JULLIE GROEP

{note}{endnote}{formmenu: Actieve spellen; Actieve workshops; Activiteiten op het water; Creatieve Workshops; Culinaire Workshops; GPS Tochten; Ontdek; E-chopper tours; Mega Sup Tour; Fiets tours; Wandel tour; Step tours; Fat bike tours; Boottour; Schooluitjes; Thema feesten; Quiz en games; Proeverijen; Winter activiteiten; Energizers; name=activiteiten; multiple=yes}

{if: contains({=`activiteiten`}, "Actieve spellen")}{import: [actievespellen]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Actieve workshops"); trim=left}{import: [actieveworkshops]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Activiteiten op het water"); trim=left}{import: [activiteitenophetwater]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Creatieve Workshops"); trim=left}{import: [creatieveworkshops]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Culinaire Workshops"); trim=left}{import: [culinaireworkshops]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "GPS Tochten"); trim=left}{import: [gpstochten]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Ontdek"); trim=left}{import: [ontdek]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "E-chopper tours"); trim=left}{import: [e-choppertours]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Mega Sup Tour"); trim=left}{import: [megasuptour]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Fiets tours"); trim=left}{import: [fietstours]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Wandel tour"); trim=left}{import: [wandeltour]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Step tours"); trim=left}{import: [steptours]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Fat bike tours"); trim=left}{import: [fatbiketours]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Boottour"); trim=left}{import: [boottour]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Schooluitjes"); trim=left}{import: [schooluitjes]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Thema feesten"); trim=left}{import: [themafeesten]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Quiz en games"); trim=left}{import: [quizengames]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Proeverijen"); trim=left}{import: [proeverijen]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Winter activiteiten"); trim=left}{import: [winteractiviteiten]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Energizers"); trim=left}{import: [energizers]; trim=left}
{endif}

Hi Dominic,

It looks like you are using the same name activiteiten for both form menus. Everything with the same name is linked together in Text Blaze.

If you want them to act independently, give the second one a different like leuk. You'll also need to update your second set of if-commands to use that new name.

Hi Scott,

Thanks for your reply. Unfortunately, the issue still persists: when I select "Actieve spellen" for both options, it continues to select the same snippet.

Does this mean we need to create a completely new link to the same snippet in order to make this work correctly?

Thanks again!

ACTIVITEITEN
{note}{formmenu: Actieve spellen; Actieve workshops; Activiteiten op het water; Creatieve Workshops; Culinaire Workshops; GPS Tochten; Ontdek; E-chopper tours; Mega Sup Tour; Fiets tours; Wandel tour; Step tours; Fat bike tours; Boottour; Schooluitjes; Thema feesten; Quiz en games; Proeverijen; Winter activiteiten; Energizers; name=activiteiten; multiple=yes}{endnote}

{if: contains({=`activiteiten`}, "Actieve spellen")}{import: [actievespellen]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Actieve workshops"); trim=left}{import: [actieveworkshops]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Activiteiten op het water"); trim=left}{import: [activiteitenophetwater]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Creatieve Workshops"); trim=left}{import: [creatieveworkshops]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Culinaire Workshops"); trim=left}{import: [culinaireworkshops]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "GPS Tochten"); trim=left}{import: [gpstochten]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Ontdek"); trim=left}{import: [ontdek]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "E-chopper tours"); trim=left}{import: [e-choppertours]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Mega Sup Tour"); trim=left}{import: [megasuptour]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Fiets tours"); trim=left}{import: [fietstours]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Wandel tour"); trim=left}{import: [wandeltour]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Step tours"); trim=left}{import: [steptours]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Fat bike tours"); trim=left}{import: [fatbiketours]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Boottour"); trim=left}{import: [boottour]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Schooluitjes"); trim=left}{import: [schooluitjes]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Thema feesten"); trim=left}{import: [themafeesten]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Quiz en games"); trim=left}{import: [quizengames]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Proeverijen"); trim=left}{import: [proeverijen]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Winter activiteiten"); trim=left}{import: [winteractiviteiten]; trim=left}
{endif}

{if: contains({=`activiteiten`}, "Energizers"); trim=left}{import: [energizers]; trim=left}
{endif}

Ook leuk voor jullie groep

{note}{formmenu: Actieve spellen; Actieve workshops; Activiteiten op het water; Creatieve Workshops; Culinaire Workshops; GPS Tochten; Ontdek; E-chopper tours; Mega Sup Tour; Fiets tours; Wandel tour; Step tours; Fat bike tours; Boottour; Schooluitjes; Thema feesten; Quiz en games; Proeverijen; Winter activiteiten; Energizers; name=leuk; multiple=yes}{endnote}

{if: contains({=`leuk`}, "Actieve spellen")}{import: [actievespellen]; trim=left}
{endif}

{if: contains({=`leuk`}, "Actieve workshops"); trim=left}{import: [actieveworkshops]; trim=left}
{endif}

{if: contains({=`leuk`}, "Activiteiten op het water"); trim=left}{import: [activiteitenophetwater]; trim=left}
{endif}

{if: contains({=`leuk`}, "Creatieve Workshops"); trim=left}{import: [creatieveworkshops]; trim=left}
{endif}

{if: contains({=`leuk`}, "Culinaire Workshops"); trim=left}{import: [culinaireworkshops]; trim=left}
{endif}

{if: contains({=`leuk`}, "GPS Tochten"); trim=left}{import: [gpstochten]; trim=left}
{endif}

{if: contains({=`leuk`}, "Ontdek"); trim=left}{import: [ontdek]; trim=left}
{endif}

{if: contains({=`leuk`}, "E-chopper tours"); trim=left}{import: [e-choppertours]; trim=left}
{endif}

{if: contains({=`leuk`}, "Mega Sup Tour"); trim=left}{import: [megasuptour]; trim=left}
{endif}

{if: contains({=`leuk`}, "Fiets tours"); trim=left}{import: [fietstours]; trim=left}
{endif}

{if: contains({=`leuk`}, "Wandel tour"); trim=left}{import: [wandeltour]; trim=left}
{endif}

{if: contains({=`leuk`}, "Step tours"); trim=left}{import: [steptours]; trim=left}
{endif}

{if: contains({=`leuk`}, "Fat bike tours"); trim=left}{import: [fatbiketours]; trim=left}
{endif}

{if: contains({=`leuk`}, "Boottour"); trim=left}{import: [boottour]; trim=left}
{endif}

{if: contains({=`leuk`}, "Schooluitjes"); trim=left}{import: [schooluitjes]; trim=left}
{endif}

{if: contains({=`leuk`}, "Thema feesten"); trim=left}{import: [themafeesten]; trim=left}
{endif}

{if: contains({=`leuk`}, "Quiz en games"); trim=left}{import: [quizengames]; trim=left}
{endif}

{if: contains({=`leuk`}, "Proeverijen"); trim=left}{import: [proeverijen]; trim=left}
{endif}

{if: contains({=`leuk`}, "Winter activiteiten"); trim=left}{import: [winteractiviteiten]; trim=left}
{endif}

{if: contains({=`leuk`}, "Energizers"); trim=left}{import: [energizers]; trim=left}
{endif}

Hi Dominic,

Not sure I understand the issue; it looks like it's working fine for me. I can select the first formmenu independently of the second. Here's a screenshot from your example:

Is this not what you wanted?

Thanks, Scott,

After a bit of puzzling, it finally works.

Thank you!

Glad to hear that!