Hi, can you provide a reproducible example?
Have a look at the dynamic UI article below. It should help with what you are after.
Some useful reading:
https://heds.nz/posts/dependent-selectInputs-shiny/