Is it possible to use JavaScript to add a CEWP to a [New/Edit/Disp]Form.aspx? The CEWP would point to an HTML file that is in a document library.
I've got a normal SP list in SP 2010 that has a NewForm.asxp
, EditForm.asxp
, and DispForm.asxp
. I know how to add a CEWP to them manually by going to edit mode and then adding the WebPart.
I want to accomplish that problematically with JavaScript. So the JavaScript would add a CEWP to the pages and point the CEWP content to an HTML file.