Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

12
  • so the script would look like this??? <script src="//code.jquery.com/jquery-1.10.1.min.js"></script> <style type="text/css"> .ms-formtable {display:none;} </style><script type="text/javascript"> $(document).OnPostRender(function() { $("span.hillbillyForm").each(function() { displayName = $(this).attr("data-displayName"); elem = $(this); $("table.ms-formtable td").each(function(){ if (this.innerHTML.indexOf('FieldName="'+displayName+'"') != -1){ $(this).contents().appendTo(elem); } }); }); }); </script> Commented Feb 10, 2015 at 21:18
  • Actually, no. You should look deeper at how you should use CSR in SharePoint 2013, here is more examples code.msdn.microsoft.com/office/… . I would also recommend not to use Content Editor Web Part but to use JSLink for new form web part zimmergren.net/technical/… These links should help you if you are new to CSR in SharePoint Commented Feb 10, 2015 at 21:23
  • I cant find jslink, im not sure why my original code is not working, I tried it on other SharePoint sites and it works fine, but with this site it isn't working. Commented Feb 10, 2015 at 21:31
  • If you do not want to use CSR, you could try to turn off CSR and use server side rendering for the web part. Go to the web part settings and switch to Server side rendering. Go to the new form web part settings and choose "Server render" social.msdn.microsoft.com/Forums/getfile/268013 Commented Feb 10, 2015 at 21:38
  • I don't see that option to turn off csr tinypic.com/r/291mb1j/8 Commented Feb 10, 2015 at 21:42