Issue #3275740 by RenatoG: Store the replaced id in the settings to validate if it's already in use in the form validation