简体   繁体   中英

How to retrieve hyperlink data type column value in sharepoint list using client object model of javascript

I have many fields in my share point custom list one of them is of hyperlink data type.Which i have named as URL....While using client object model i am not able to fetch the data whose data type hyperlink. i am using,

get_title('URL')

function.but it returns object type.but i need the exact url value how to get it

I think you need to add .get_url() after the field name

For example:

myListItem.get_fieldValues()["WebPage"].get_url()

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM