Text box based on variant selection

How can I get a text box to appear based on selecting a Variant? We do custom engraving as an option and want the text input field to appear only when that option is selected.