HOW TO
ArcGIS for Local Government provides maps and apps that help implement GIS in a local government context, and a destination where users, partners, and the teams within Esri can collaborate. The instructions provided describe how to remove the 'Submit Your App' tab in Maps and Apps.
Warning:
Caution: The instructions below include making changes to essential files. It is recommended that you backup the original files before proceeding and follow the steps carefully.
Code:
width: 24.8%; /* Divide tab bar into 4 parts, but must be a bit less than 25% because of the separator widths */
Code:
width: 32.8%; /* Divide tab bar into 3 parts, but must be a bit less than 33% because of the separator widths */
Code:
dojo.connect(...
Code:
..., updateSubmitResetButtons);
Code:
dijit.byId("licenseInfo").set("value", configData.govtFormalName)
Code:
// Upload the image file when the form is submitted, then do the actual form submit
dojo.connect(dijit.byId("thumbnail"), "onBegin", function(event) {
// Try to block multiple submissions
dijit.byId("submitButton").set("disabled", true);
dijit.byId("resetButton").set("disabled", true);
});
Code:
else
{
dojo.style("uploadingActive", "display", "none");
dojo.style("uploadingFailed", "display", "block");
}
resetForm(false);
});
Note:
This includes five of the statements from step B, so they are already gone.
Code:
// Set initial conditions in submit form
if(disableThumbnailUpload)
{
dojo.addClass("submissionForm", "absent");
dojo.removeClass("submissionFormNotAvailable", "absent");
}
// Update the image file name after a selection of an image file
dojo.connect(dijit.byId("thumbnail"), "onChange", function(event) {
dojo.byId("uploadedfileEcho").innerHTML = event && 0 < event.length ? encodeURIComponent(event[0].name) : "";
updateSubmitResetButtons();
});
dojo.connect(dijit.byId("title"), "onChange", updateSubmitResetButtons);
dojo.connect(dijit.byId("accessInformation"), "onChange", updateSubmitResetButtons);
dojo.connect(dijit.byId("description"), "onChange", updateSubmitResetButtons);
dojo.connect(dijit.byId("url"), "onChange", updateSubmitResetButtons);
updateSubmitResetButtons();
Code:
<div id="tabBar"><span class="tabBarTitle" onclick="changeSubpage('Home',true)">Home</span><img src="graphics/separator.png"
/><span class="tabBarTitle" onclick="changeSubpage('Gallery',false)">Gallery</span><img src="graphics/separator.png"
/><span class="tabBarTitle" onclick="changeSubpage('SubmitApp',false)">Submit Your App</span><img src="graphics/separator.png"
/><span class="tabBarTitle" onclick="changeSubpage('About',true)">About</span>
Code:
<div id="tabBar"><span class="tabBarTitle" onclick="changeSubpage('Home',true)">Home</span><img src="graphics/separator.png"
/><span class="tabBarTitle" onclick="changeSubpage('Gallery',false)">Gallery</span><img src="graphics/separator.png"
/><span class="tabBarTitle" onclick="changeSubpage('About',true)">About</span>
Code:
<!-- Submit Your App -->
<div id="SubmitApp" data-dojo-type="dijit.layout.ContentPane"
data-dojo-props="title:'Submit Your App'">
<div class="subpage" data-dojo-type="dijit.layout.BorderContainer"
data-dojo-props="design:'headline',gutters:false">
<div class="fullHeight noPad" data-dojo-type="dijit.layout.SplitContainer"
data-dojo-props="region:'center',orientation:'horizontal',splitter:'true'">
Code:
Article ID:000011567
Get help from ArcGIS experts
Download the Esri Support App