Display monogram option with selected variant option

New Member
2 0 0
I want to display the monogram option if the product option selected is "Yes". I have tried with below code but didn’t work. How should I make it work?

{% for product_option in product.options_with_values %}
{% if product_option.selected_value == 'Yes' %}
<div class="product-custombox">
<p class="line-item-property__field">
<label for="engrave">Engrave</label>
<input required class="required" id="engrave" type="text" name="properties[Engrave]">
{%- endif -%}
{%- endfor -%}
Shopify Partner
1219 100 154

Hi @web1cay,


Could you please share your website URL so that I can see the actual scenario?

Thanks & Regards
Perennial Solution

Problem Solved?✔️Like and Accept the solution that can help others.
Need any help with theme customization or design? Hire us
Email: infoperennialsolution@gmail.com
Skype: infoperennialsolution
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing