Select to view content in your preferred language

WAB Print Widget - Static Title

793
6
Jump to solution
01-31-2018 10:58 AM
-j-b-
by
Occasional Contributor

Hello,

I am wondering, is it possible to disable user ability to change map titles using the print widget? 

Thank you!

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Julianna,

  Sorry for not testing this further. You need to change it to this then:

<input type="text" data-dojo-attach-point="titleNode" data-dojo-type="dijit/form/ValidationTextBox" data-dojo-props="name:'title',trim:true,required:true,style:'width:100%;', 'readonly': 'readonly'" />

View solution in original post

6 Replies
RobertScheitlin__GISP
MVP Emeritus

Julianna,

   You want it to not show the title in the widget or just not be editable?

0 Kudos
-j-b-
by
Occasional Contributor

Robert, 

I'd like it not to be editable. 

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

In the apps Print widget folder open the templates folder and then open the Print.html Find the titleNode and add

", 'disabled': 'true' to the end of data-dojo-props as below:

<input type="text" data-dojo-attach-point="titleNode" data-dojo-type="dijit/form/ValidationTextBox" data-dojo-props="name:'title',trim:true,required:true,style:'width:100%;', 'disabled': 'true'" />
0 Kudos
-j-b-
by
Occasional Contributor

Thank you Robert! This was successful in removing the title editing ability, however it also removes the list of prints from the bottom of the panel. Any ideas as to why this is? 

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Julianna,

  Sorry for not testing this further. You need to change it to this then:

<input type="text" data-dojo-attach-point="titleNode" data-dojo-type="dijit/form/ValidationTextBox" data-dojo-props="name:'title',trim:true,required:true,style:'width:100%;', 'readonly': 'readonly'" />
-j-b-
by
Occasional Contributor

That worked, thank you Robert!

0 Kudos