Changing Visible Input Boxes Depending On Button Press

Hello. I have an issue. On our website, we take multiple inputs from the customer. We’re trying to find a way to change the number of textboxes customers can see depending on which variant of the product they pick. For example, on this page:

https://luxeengravable.com/products/bifold-wallet-classic

When the customer has selected the front initial option, only the input box for initials should be present, with both the input boxes for initials and message being visible only when the other option is chosen. How can I hide the message input box when the user has selected the initials only variant of the product?

Hi

Input field can be show based on the variant made in admin.

If you are a Developer you can create metafield at variant level and put command separated input id.

Write a JavaScript code to show the related input.

If you are not Developer request you to hire someone or us for the same.