Using script tags/Variations

Topic summary

A user is seeking help with conditional form field visibility in what appears to be a Shopify Liquid template. They want a personalization form field to display only when users select a “Yes” option.

Current Implementation:

  • Using Liquid tags to check if product contains ‘personalizar’ tag
  • Form includes fields for name and number with custom icons
  • Character limits applied (2 digits for number field)

Issue:
The code snippet appears corrupted or improperly formatted, with reversed/garbled text in sections, making it difficult to diagnose the exact problem. The user needs guidance on implementing the conditional display logic correctly, likely requiring JavaScript or proper Liquid conditional statements to toggle field visibility based on a “Yes/No” selection.

Summarized with AI on November 8. AI used: claude-sonnet-4-5-20250929.

Hello everyone, I have this form field, I would like it to be visible only when clicking on the ‘‘Yes’’ option

Meu código

{% assign = product.tags %}
{% if productTags contains ‘personalizar’ %}

Nome:

Número: (ATÉ 2 DÍGITOS)