Use Custom JavaScript Helpers in Scenario Editor
We are calling the JS function from the DS script and it returns the values after evaluation
The JS function that we have created is shown below

This function will calculate a 10% discount on a Price that is entered. The usage of function in TD script is shown below

2. We can also make use of the Custom JS action in DS and then fetch the value using the locker

Last updated: June 26, 2023
If you have any feedback on this topic, please contact us at documentation@appvance.ai
Last updated: October 16, 2026