InputParameter declared in injectJS component configure on textbox on webpage : InputParamFC
var obj = InputParamFC
alert(‘Called:-’ + obj.value)
var userinput = document.getElementsByName(‘Username’).value;
Do you mean this way?
Just for your reference find this attached sample workflow and let me know
js-parameter-pass-sample.zip (2.1 KB)
Would be also helpful if you can help to understand what is the purpose of first parameter as in some sample scenarios fro use.
e is just a parameter name and it is a reference for event object which will be passed to event handlers.you can use any variable name here instead of e as well. It allows us to prevent the propagation of default behaviors for certain elements.
For better understanding, visit this link: Demo
Mouse Events DEMO uses e.which and e.type
indicate that screen on which you wants to execute this js code. here i have used Google Chrom browser screen. you can easily check that in its selector property.
and Don’t have latest studio version it has been fixed or not but Inject js script gives some error with my IE but on the other hand it works well in chrome.
Just a query,
If you have noticed Inject Js activity InputParameter Property only will take string as a parameter.
So There is one way from my side is declare your variables and then pass it like variable1+","+variable2…
and split this in js and access the variables with array index.
You will understand the above with attached sample for you.
Will go through your sample.