It sounds like the previous fields aren't getting cleared when switching the dropdown selection. You might need to reset or refresh the dynamic schema when the value changes. Have you tried forcing an update by clearing the existing fields before loading new ones?
This reminds me of how AI-powered editing apps like Photoleap dynamically adjust tools based on selected effects—removing irrelevant options to keep the UI clean. A similar approach might work here, ensuring only relevant fields are displayed when the dropdown value changes.