change dialog title

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
Gerald Marxer
Posts: 6
Joined: Tue Dec 02, 2014
Contact:

08 Jul 2016

I tried to change the dialog title with following jquery/javascript code:


$('#dialogTitleSpan').text('My new dialog tilte');


What is the problem ?

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

08 Jul 2016

Hi Gerald,

Try this:

Code: Select all

$('#dialogTitleSpan', window.parent.document).bind('DOMSubtreeModified', function(){
	$('#dialogTitleSpan', window.parent.document).html('My new dialog tilte');
});

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 9 guests