diff --git a/src/FormBuilder/resources/js/form-builder/src/supports/field-settings/FieldSettingsHOC.tsx b/src/FormBuilder/resources/js/form-builder/src/supports/field-settings/FieldSettingsHOC.tsx index 3f683c6ef3..18b5d0ff60 100644 --- a/src/FormBuilder/resources/js/form-builder/src/supports/field-settings/FieldSettingsHOC.tsx +++ b/src/FormBuilder/resources/js/form-builder/src/supports/field-settings/FieldSettingsHOC.tsx @@ -61,7 +61,7 @@ const generateEmailTag = (fieldName, storeAsDonorMeta) => { function FieldSettingsEdit({attributes, setAttributes, fieldSettings}) { const validateFieldName = useFieldNameValidator(); const [hasFieldNameAttribute, setHasFieldNameAttribute] = useState(attributes.hasOwnProperty('fieldName')); - const [isNewField] = useState(hasFieldNameAttribute); + const [isNewField] = useState(!hasFieldNameAttribute); const updateFieldName = useCallback( (newFieldName = null, bumpUniqueness = false) => {