How to use "Modified Java Script Value" step

#1

• 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

#2

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

0 Likes

#3

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

0 Likes

#4

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:

0 Likes