Hello,
I am wondering, is it possible to disable user ability to change map titles using the print widget?
Thank you!
Solved! Go to Solution.
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'" />
Julianna,
You want it to not show the title in the widget or just not be editable?
Robert,
I'd like it not to be editable.
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'" />
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?
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'" />
That worked, thank you Robert!