Hide Content Type on DispForm

Forums Dynamic Forms for SharePoint Hide Content Type on DispForm

This topic contains 3 replies, has 2 voices, and was last updated by  Alexander Bautz 1 week, 1 day ago.

  • Author
    Posts
  • #22305

    CinderGirl
    Participant

    Hi all! Is there a way to hide the mention of the Content Type at the bottom of the DispForm? I tried the following with no luck so far:

    1. Creating a rule to hide that field on load of the form
    2. Custom JS to hide the field on load of the form

    Custom JS
    function hideCT(){
    spjs.dffs.hideFieldsByRule([“ContentType”]);
    }

    • This topic was modified 2 weeks ago by  CinderGirl.
  • #22340

    Alexander Bautz
    Keymaster

    Try this line:

    jQuery("span[id$='_InitContentType']").parents("table:first").hide();

    Alexander

  • #22390

    CinderGirl
    Participant

    This one didn’t work :-/
    It also is now showing the version number (I have versioning turned on).

    Is there a way to hide these 2? I haven’t added them to the dispform under rules or the tab. They are auto appearing along with the modified info. (would love to manipulate these as well if possible)

    Attachments:
  • #22397

    Alexander Bautz
    Keymaster

    It’s hard to tell without looking at your site, but maybe the format is different in the version I tested it in. Use the developer console to find an ID or a class you can use in a selector to hide it. Right click and select “inspect” to get started with the dev tools.

    Alexander

You must be logged in to reply to this topic.