How do you use code notes in stamps?


(Pat Maddox) #1

@PaulWalters has mentioned to me a couple times that I can move my long action code from stamps into code notes. Well… I don’t know how to do that. Say I’ve got a code note that has the text:

$Title = "new title";

And I want to run that from a stamp. How do I do that? I thought using eval() might do it:

eval($Text("my code note"))

but no…


(Paul Walters) #2

Try using something like this

action($Text(/Code Notes/Text to URL Stamp))

This points to the text of a “code note” at that fully-qualified path. See “action” in aTbRef.


(Pat Maddox) #3

Awesome!! I didn’t know about action. Thank you :slight_smile:


(Mark Anderson) #4

I’m glad you posted that - I’d completely forgotten where the solution was!