remove/hide a list title on a dialog new form

rss

Posted by jpwallace - Jan 11 ’17 at 06:38

When I open my new form in dialog i can see the name of the list at the top of the window. Is there a way to remove or hide or rename the name of the list??

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 8 years 2 months 15 days
    #1 by Dmitry Kozlov Jan 13 ’17 at 04:59

    Hi,

    Insert the following code into the new form via JS-editor of Forms Designer:

    $('.ms-dlgTitle', window.parent.document).hide();

  • jpwallace
    Member
    Member for: 4 years 10 months 28 days
    #2 by jpwallace Jan 16 ’17 at 06:49

    Brilliant, that worked perfectly thank you. I have managed to change the name of the default new form too, instead of .hide i replaced this with .text("EXAMPLE");

    What do i need to add to this to change the font size and font color?

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 8 years 2 months 15 days
    #3 by Dmitry Kozlov Jan 17 ’17 at 09:06

    [#2]: Hi,

    You can change CSS properties with jQuery:

    https://learn.jquery.com/using-jquery-core/css-styling-dimensions/

    ex.:

    $('.ms-dlgTitle', window.parent.document).css('fontSize', '100px');

Displaying 1 to 3 of 3 messages