How to use "Modified Java Script Value" step

• Following is a screenshot of how you can use provided functions or create your own functions.
• The list of input fields is available under Input fields. These can be used in the script.
• You can use ‘Get variables’ button to make the variables available as output to the next step.
• In the screenshot below ‘Alert’ is an inbuilt function whereas display and multiplication are user-defined functions.

image

2 Likes

I am getting reference error due input fields not available even after adding input field…

Could you please elaborate with screenshots so that we can have better understanding of the issue which you are facing?

Hi @seema.kothari,

I think this is the only way to implement functions in javascript.

Updated the script by declaring a variable B and the output is as: