Forms Designer Icon missing

rss

Posted by bburke - Mar 13 ’14 at 09:29

I added some jquery to a document library using a content editor web part and the Forms Designer icon doesn't display on the ribbon. When I remove the webpart, the icon still doesn't display. (The icon had previously displayed and fd_ form functions properly) (script alos performs properly)

This is a document set library. Below is the script added.

 

<script type="text/javascript" src="../../Style Library/jquery-1.10.2.js"></script>
<script type="text/javascript">
$(document).ready( function() {
$("img[alt='edit']").each(function(index, element) {
var parent = $(element).parent();
var link = $("<a href='#' target='_self'><img border='0' alt='edit' src='/_layouts/15/images/noteicon.gif?rev=23'></a>");
var js = parent.attr('onclick');
js = js.replace("return false;", "");
js = js.replace("EditItemWithCheckoutAlert", "EditItem2");
link.click(function() {          
eval(js);
setTimeout(clickTab, 500);
});
parent.after(link);
});

$("#contentBox").prepend('<input class="newButton" type="button" value="Create New Proposal Set"/>');

$(".newButton").on("click", function (e) {
e.preventDefault();
var url = "https://portals.xxxxxx.com/bd/ProposalSets/Forms/fd_Document%20Set_New.aspx?List=2cdf5e37%2D4534%2D4a49%2Db4fe%2D14bd219d0f11&ContentTypeId=0x0120D520007291216696D1EE4FA0DCCC7B3CFC1B05&RootFolder=%2Fbd%2FProposalSets&IsDlg=1";
var options = {
url: url
};
SP.SOD.execute('sp.ui.dialog.js', 'SP.UI.ModalDialog.showModalDialog', options);
$(".ms-dlgOverlay").css("opacity", "0.9").css("background-color", "#222222").click(function () {
SP.UI.ModalDialog.commonModalDialogClose(1, "done");
});
});

});   

function clickTab()
{
var iframe = $("iframe.ms-dlgFrame");
var a = iframe.contents().find("#ui-id-2");
if ( a.length === 0 )
{
setTimeout(clickTab, 500);
}
else
{
a[0].click();
}
}
</script>

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 5 years 9 months 26 days
    #1 by Dmitry Kozlov Mar 14 ’14 at 02:44

    Hi Bill,

    On which page have you added this script: form page or view page? Please, try to deactivate/activate Forms Designer feature at the site collection level and make sure that you don't have JavaScript errors or notifications on the page where you have added your custom script.

Displaying 1 to 1 of 1 messages