Issue #3275739 by RenatoG: Implement the maxlength for replaced_id in the front-end to use the quantity that was stored in the settings page