PROBLEM

Unable to save the edits in the Smart Editor widget when some fields are empty

Last Published: April 25, 2020

Description

In some instances, when using the Smart Editor widget to edit the attributes of features in the Web AppBuilder for ArcGIS application, the Save button is disabled and the following message is returned when clicking on the empty fields:

Warning:   
This value is required.

'This value is required' warning message

Cause

This is by design. When clicking on the empty fields, the warning message is returned because these fields are not nullable. This can be verified by viewing the hosted feature service from the REST endpoint in ArcGIS Online. The following image shows the non-nullable fields when viewing from the REST endpoint:

BuildingType(..., nullable: false, ...)
LvlDmg(..., nullable: false,...)

View the service at ArcGIS REST API

Solution or Workaround

To resolve this issue, change the field property to allow null values for the fields in ArcMap, and republish the hosted feature layer before adding it to the Web AppBuilder for ArcGIS application.

  1. In ArcMap, open the Catalog window.
  2. Right-click the feature class, and click Properties.
  3. In the Feature Class Properties dialog box, click the Fields tab, and click the field name to edit the field properties.
  4. In the Field Properties section, click the drop-down arrow for the Allow NULL values property, and select Yes.
  5. Click Apply > OK.

    Feature Class Properties dialog box
     
  6. Publish the feature class by choosing Overwrite an existing service in the Share as Service pane to overwrite the existing hosted feature layer in ArcGIS Online.
  7. Update the web map with the hosted feature layer and add the web map to Web AppBuilder for ArcGIS.
The following image shows the Smart Editor widget with fields, which allows null values. The warning message no longer appears if the fields are empty, and the Save button is enabled.

The field has no warning message and the Save button is enabled
 

Article ID:000018418

Software:
  • ArcGIS Web AppBuilder
  • ArcGIS Online

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options