myCFML Developer Blog - Articles · Oct 6, 2025
CustomTag CFScript "Nuance" - Use thisTag.executionMode to ensure logic only runs once
0Sign in to vote or save
This page did not load. You can still read it on the original site — the toolbar below keeps your place in the directory.
When calling a ColdFusion custom tag using CFScript syntax (cf_customTagName()), it executes twice-once in start mode and once in end mode-unlike the single execution with tag-based syntax (<;cf_customTagName>;). This subtle behavior can cause unexpected results. To handle this, I use thisTag.executionMode to ensure logic only runs once. This nuance…
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.