1

I tried this:

var fieldValues = currentItem.get_fieldValues();  

But it returns [object object]. How can I see through this without know the column name?

1 Answer 1

0

You can use below script.

var fieldValues = currentItem.get_fieldValues();  

console.log(JSON.stringify(fieldValues));

Once script is executed second statement will print the data in console in readable format.

1
  • In browsers, including IE, you can just log the object to the console without having to stringify it. In fact this lets you expand/collapse nodes so it's easier to read.
    – Chris Romp
    Commented Jan 24, 2018 at 17:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.