This can not be done with regular Jira custom fields. But Jira Service Management has a feature called Forms. Within a form you can create dynamic fields.
The fields in the forms can also be linked to actual Jira fields if you need them in your search queries for example.
There are probably also some plugins doing similar stuff. (Forms used to be a plugin called ProForma and was acquired by Atlassian)
Hello everyone! We are very excited to announce some much needed changes to the issue create experience in JSM (the blue "create" button) at the top of the screen. We have just starte...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events