Skip to content

Magento 2 – How to show text box field on selecting “Other” option in customer attribute dropdown

I have created customer attribute from admin, It is a drop-down. In the drop-down, i have one value as “other”, once user select “other” I need to show text box and save that value.

How can i achieve this?

Thanks.