remove/hide a list title on a dialog new form
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 KozlovAdminMember for: 8 years 7 months 25 days
Hi,
Insert the following code into the new form via JS-editor of Forms Designer:
$('.ms-dlgTitle', window.parent.document).hide();
-
jpwallaceMemberMember for: 5 years 4 months 10 days
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 KozlovAdminMember for: 8 years 7 months 25 days
[#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');