
Hello,
First of all, I've created an IVR in which I retrieve information and store it in a "VarTest" variable.
In my workflow, there are context variables that have exactly the same name as the one in the IVR where I saved the information.
And now that the desired value is in my context variable, I'd like to retrieve it in a JS script in order to put this value in a form field of the conversation entity.
I was thinking of using :
function onLoad(context){
console.log("Start script");
var formContext = context.getFormContext();
console.log(formContext.getAttribute("VarTest"));
And then exploit the value
but he return "null" everytime, so is it possible to do that ?
Hi Elouan,
One option is to store the value of the VarTest variable in a field and then retrieve the value of the field in your JavaScript code.