August Development Update

I essentially want to clean up my snippets by replacing some of my toggles or drop-down options with buttons instead. This is my current set-up to pull up multiple snippets:

{formmenu: default=Ready for Test; Not Ready for Test; name=Response}

{if: response = "Ready for Test"}imported snippet #1 {endif}
{if: response = "Not Ready for Test"; trim=left}imported snippet #2{endif}

I want to be able to click a button and have my imported snippet show. After playing around with the code blocks, this is what I came up with:

{run: Ready = ""
}{button: Ready = "yes"
; label=Ready To Test; disabled=no}

{if: Ready = "yes"}Imported snippet #1{endif}

Feel free to let me know if there is a better way to do this or if I am on the right track.

Thank you!

Hey Jennifer!

Here's the snippet from the video that you mentioned:

{note}Customer Onboarding

Step 1: Log customer information
{formtoggle: name=Customer info logged in HubSpot; default=no}{endformtoggle}
{formtoggle: name=Relevant information added in customer notes; default=no}{endformtoggle}
Mark when step 1 is complete: {run: counter=0}{button: counter = counter + 1
notify("Move to Step 2")
; label=Step 1 Complete; disabled={=counter>2}}

{if: counter>0}Step 2: Send customer resources
{formtoggle: name=Send quickstart guide; default=no}{endformtoggle}
{formtoggle: name=Send personalized onboarding video; default=no}{endformtoggle}
Mark when step 2 is complete: {button: counter = counter + 1
notify("All Done!")
; label=Step 2 Complete; disabled={=counter>2}}{endif}

{if: counter>1}You're all done! {{^^%F0%9F%8E%89^^}}{endif}{endnote}

1 Like

Thank you @Dylan_Cable !! This actually makes me really happy because it looks very similar to what I came up with in the previous post but with a different name. That means I was on the right track.

1 Like

Another question @Dylan_Cable When I use the snippet, the button seems to have this pulsing effect. Is that supposed to happen?

Hey @Jennifer_Saavedra which pulsing effect are you referring to? Can you please share a photo/video?

Hi @Gaurang_Tandon I just emailed you a video.

1 Like