Set and Get Value for Hyperlink Field in JSOM
Set Value
var urlvalue = new SP.FieldUrlValue();
urlvalue.set_url('www.google.com');
urlvalue.set_description('Title');
oListItem.set_item("URL", urlvalue);
Get Value
console.log(fvalue.get_url());
console.log(fvalue.get_description());
No comments:
Post a Comment