{"id":139,"date":"2010-12-12T16:54:00","date_gmt":"2010-12-12T22:54:00","guid":{"rendered":"https:\/\/www.chrystalsander.com\/blog\/?p=139"},"modified":"2010-12-12T16:54:00","modified_gmt":"2010-12-12T22:54:00","slug":"splistitem-getformattedvalue-snippet","status":"publish","type":"post","link":"https:\/\/www.chrystalsander.com\/blog\/?p=139","title":{"rendered":"SPListItem.GetFormattedValue Snippet"},"content":{"rendered":"<p><span style=\"color: rgb(0, 51, 0);font-family:georgia;\" >public stringGetFormattedValue(string fieldName)<\/span><\/p>\n<p><span style=\"color: rgb(0, 51, 0);font-family:georgia;\" >{<\/span><br \/><span style=\"color: rgb(0, 51, 0);font-family:georgia;\" >                 SPField field = this.Fields.GetField(fieldName);<\/span><br \/><span style=\"color: rgb(0, 51, 0);font-family:georgia;\" >                 if (field != null)<\/span><br \/><span style=\"color: rgb(0, 51, 0);font-family:georgia;\" >           {<\/span><br \/><span style=\"color: rgb(0, 51, 0);font-family:georgia;\" >                           returnfield.GetFieldValueAsHtml(this[fieldName]);<\/span><br \/><span style=\"color: rgb(0, 51, 0);font-family:georgia;\" >           }    <\/span><br \/><span style=\"color: rgb(0, 51, 0);font-family:georgia;\" >          return null;<\/span><br \/><span style=\"color: rgb(0, 51, 0);font-family:georgia;\" >}<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>public stringGetFormattedValue(string fieldName) { SPField field = this.Fields.GetField(fieldName); if (field != null) { returnfield.GetFieldValueAsHtml(this[fieldName]); } return null;}<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38],"tags":[],"_links":{"self":[{"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/139"}],"collection":[{"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=139"}],"version-history":[{"count":0,"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/139\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=139"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=139"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=139"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}