Export as a template

Web AppBuilder enables you to easily create web app templates for your organization by exporting 2D or 3D apps. Your template is hosted by ArcGIS Online or ArcGIS Enterprise.

Caution:

From this release, you can only export one template from an app. If you want to export more than one template from an app, make copies of the app and export templates from them.

Export the template

Start with the app configured in Web AppBuilder:

  1. Click the Saved drop-down arrow and click Export As Template.
    Export As Template button
  2. On the left panel of the Set Configurable Parameters window, select the customizable parameters, for example, logo and click the Add parameter icon icon in line with the parameter. The logo parameter is added in the middle panel of the window. You can preview it in the right panel.
    Set configurable parameters

    Configurable parameters such as title and subtitle are added by default; therefore, there is no Add parameter icon icon associated with them.

  3. Expand other parameters, for example widgetPool, to add more configurable parameters.
    Select parameters

    For more information about configurable parameters, refer to Create configurable app templates.

    Currently, the template exported from Web AppBuilder only supports Paragraph, String, Boolean, Number, and Options field types.

  4. Click Save to save the configurable parameters in the app.

    The saved configurable parameters reload when the Set Configurable Parameters window opens the next time. They are persisted in the app config file.

  5. Click Export. In the Export as Web App Template window, provide the template information with the Title, Tags, and Description. Click OK.
  6. If you don't have permission to share your exported template to the template group specified in your organization, a message will appear to indicate this with instruction to manually add it to the group once it's accessible.
  7. Click OK. In either case, your template is added as an item to the My Content tab of the content page. Navigate to My Content to see your custom template.

    The Export As Template will not only create a template as an app item under your account, but also tries to share it with the Web App Templates group specified in your organization. If you do not have privileges to share the item with the specified group, a warning message displays.

  8. Since the template exported successfully, the Update button replaces the Export button on the Set Configurable Parameters window. Click Update if you make changes on the exported template. Click Close to close the window.
  9. Share the item to the group being used for app templates if you want to use the configurable template in your organization's template galleries. Your administrator can choose the group to use for templates when configuring map settings and group settings for your organization.
  10. Publish a map with your template. Configure the parameters for the app. If you want to add more functions, click the Saved and Advanced Configuration button to open Web AppBuilder.
    Advanced configuration

    Refer to Create apps from maps for details.

Update the template

As one app is only associated with one template, update the template accordingly when the app changes.

  1. Select the app associated with the template in the My Content tab of the content page and click Edit Application to open the app.
  2. Click Export as Template to open the Set Configurable Parameters window.

    If you previously exported a template, the Update button shows instead of the Export button.

  3. Make changes to the parameters.
  4. Click Update. The Update web app template message appears informing you of the update status.
    Update message
  5. Click OK to close the message.
  6. Click Close to close the window.
  7. Publish a map with your updated template.