You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to return array values in JS function in VBCS?

edited Jun 29, 2019 8:37AM in Visual Builder 17 comments

Content

Hi Team,

I am trying to return array in Javascript and split those array values and populate in text fields.
But the array values which i return in JS couldnt able to get from the call module function result.
Please find the sample code which i have tried.
Kindly help us to do.

 

Thanks,

Karthick

Version

19.1.3

Code Snippet

 PageModule.prototype.arrayCheck = function (arg1) {
    
  var V_filename;
  var V_filesize;
  var V_filetype;

  V_filename="Karthick";
  V_filesize="2mb";
  V_filetype="pdf";
var returnValues = new Array();

 returnValues=[V_filename,V_filesize,V_filetype];

return returnValues;
  };

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!