Hello,
is it possible to set and overwrite the value of a local token via JavaScript? If yes, how do I access the token in the JS snippet?
Thanks in advance.
Solved! Go to Solution.
If a certain amount is reached, an alert should be sent to an email address, so that the respective smart campaigns of that program could be deactivated on time. This could be easily achieved if I just create a new custom field, but since this value is rather relevant for the program than for the lead itself, I settled for the my.token.
There are a couple of ways to accomplish this.
You might want to try the RC method first and see how it works out for you. I'm rather a fan of it really (AFAIK, I came up with the concept!).
* I'm the tech lead of the FlowBoost platform.
Can you rephrase your question?
"local token" typically means a {{my.token}} in the current Program. And writing local tokens can't be done from the browser side at all (this would mean leads could overwrite data shared by everyone in the program -- a definite no-no!).
Certainly you could display data from the browser in place of a {{my.token}} that is embedded in the page. But that wouldn't be called "setting" or "overwriting."
What is the exact effect you want to achieve?
Hello Sanford,
I have rephrased the question, thanks for the hint.
What I actually attempted is to create some kind of counter for members added to a program. If a certain amount is reached, an alert should be sent to an email address, so that the respective smart campaigns of that program could be deactivated on time. This could be easily achieved if I just create a new custom field, but since this value is rather relevant for the program than for the lead itself, I settled for the my.token.
Since overwriting my.tokens in JavaScript is a huge security issue, is there another possibility to change the value of a my.token and use that afterwards in a smart list? Or at least get the amount of program members and send out an alert, whenever a certain value has been reached?
Thanks in advance
If a certain amount is reached, an alert should be sent to an email address, so that the respective smart campaigns of that program could be deactivated on time. This could be easily achieved if I just create a new custom field, but since this value is rather relevant for the program than for the lead itself, I settled for the my.token.
There are a couple of ways to accomplish this.
You might want to try the RC method first and see how it works out for you. I'm rather a fan of it really (AFAIK, I came up with the concept!).
* I'm the tech lead of the FlowBoost platform.