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 @EduSnip_Trailblazer2 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

Hi, TB Team !
I usually don't reply to News Update but I just came around to read more (the documentation pages) about these "new" command {run} and {button} and mostly the new Code Block feature underlying them...And it is absolute bonkers! :star_struck: :partying_face: :exploding_head:

Truly amazing idea and impressed how you guys keep coming with features most users don't know they need...until they can't live without it anymore!
The way this code block basically allow you to run sub-script of your snippet at will...before actually running (inserting) your snippet. Wow ! :ok_hand: :ok_hand::pinched_fingers: :cook:

3 Likes