When a snippet only contains text, the snippet is inserted instantly, compared to a snippet containing a formtoggle, the snippet needs a validation before inserting.
Text Blaze Snippet
Copy to Text Blaze
if
contains(
url
,"blaze.today")
Text text text
else
defaultnoname1
formtoggle text
Snippet preview
Cannot preview {site} commands
In the snippet above, when the if statement is true, the snippet also needs validation - it seems the formtoggle triggers this even when its not relevant.
You are correct. The form window is triggered because of the formtoggle, even when that formtoggle is not relevant.
Currently, form commands anywhere in a snippet will trigger the form window. This applies even when dynamic logic (like {if} conditions) would hide those form commands in the snippet preview.
There isn't a way to prevent this right now. We want to improve it in the future, but, there is no timeline for it currently.
I definitely 2nd the need for a solution to this. It is confusing my users when a blank window pops up despite a form field being presented to the user.