I am struggling with grabbing the text from a lookup column. The field contains a link with text, and in my JS code, I would like to access the field's text contents (not the link).
If I use
oListItem.get_item("columnName"), the return value is an object (console prints [Object object]). I noticed on some forums, there was a method
get_fieldValuesAsText(). Link here
This method, in theory would return the text value in the column in question. My question, is will this work, and, where can I find some examples of using this.