DFFS V3.21 [ Edit Form Launches SP Publishing Toolbar]

Forums Dynamic Forms for SharePoint DFFS V3.21 [ Edit Form Launches SP Publishing Toolbar]

This topic contains 2 replies, has 2 voices, and was last updated by  Drew Heggie 3 years, 7 months ago.

  • Author
    Posts
  • #7595

    Drew Heggie
    Participant

    When I add a CEWP to the Edit Page it launches the SharePoint Publishing toolbar and the form displays the Field tags.
    I have inserted the following into the Misc sections for Custom CSS and Custom JS to hide/ prevent the page going into Publish mode. However, I’m sure there may be a more elegant solution. Any ideas?

    Custom CSS
    .ms-formfieldlabelcontainer {
    display: none;
    }
    .ms-formfieldvaluecontainer {
    border: 0px;
    border-style:hidden;
    padding:0px;
    margin:0px;
    }

    Custom JS
    window.onbeforeunload=DisableRefreshOnFocus;
    $(document).ready(function()
    {
    $(‘#ctl00_SPNavigation_ctl01_authContainer1’).remove();
    });

  • #7612

    Alexander Bautz
    Keymaster

    Hi,
    Unfortunately I have no experience with using the publishing features in SP so I have never looked into this but your fix, looks pretty “light weight” and if it works, I would say it is spot on 🙂

    Alexander

  • #7615

    Drew Heggie
    Participant

    Thanks Alex,
    Additional information for readers that may be seeing the same behaviour.
    This only seems to affect sites where the Site Features has the option of “Office SharePoint Server Publishing” Activated.

You must be logged in to reply to this topic.