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:
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}}
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.
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!
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 !