AnsweredAssumed Answered

How do I pass or access the default value for a custom my token?

Question asked by e65a7963ff681d1dfe02a59b5af8d91e1453deec on Dec 22, 2016
Latest reply on Dec 22, 2016 by sanford.whiteman

I've constructed a custom my token that access a custom object.  But that object may not exist.  I'd like to just display a default that can be passed in just like all of the regular tokens, but nothing seems to work.  This is what I have in the email:

 

{{my.DisplayTitle:default=This is Default Title}}

 

However, the default here is never displayed.  Is there someway to access this in the token script or pass back an "undefined" to trigger the default?  The default seems to work fine with the standard tokens, but there doesn't seem to be a way to write your own token and show a default if nothing is defined.

 

Thanks!

Outcomes