How to disable shopify forms for converted customers

Topic summary

A user implemented a Shopify Forms app that provides discount codes upon submission, but the form continues to display to customers who have already submitted it.

Proposed Solution:

  • Replace the Shopify Forms app block with a “Custom liquid” section
  • Use conditional logic to check for a customer tag (e.g., “form-submitted”) that the Forms app assigns after submission
  • Wrap the form HTML in Liquid code that only displays if the customer doesn’t have the submission tag

Implementation Details:

  • Extract the form’s HTML from “View page source” where the app block outputs it
  • Use {% unless customer.tags contains "form-submitted" %} to conditionally show/hide the form
  • The solution has been tested and confirmed working for inline forms
  • Popup forms have not yet been tested with this approach

Status: Solution provided with working code example; awaiting confirmation if popup functionality is also needed.

Summarized with AI on October 24. AI used: claude-sonnet-4-5-20250929.

Uizal

1h

Hello there,

Recently I’ve implemented a new form with Shopify Forms app which provides a discount code after submitting the form.

The problem is that the form is still being displayed for the customer who have already submitted the form and it’s annoying.

Can you please help me with a solution?

Best regards,

Uizal

Hello @Uizal ,

I hope you are well!

Can you please provide the store URL? Also, once the form is submitted, do you want to hide the form and in place of that do you want to show something else? If not, can you please confirm if you want to hide the form completly?

You can use “Custom liquid” section instead of an App block.
Forms app can assign a tag if customer submitted the form, so you can use this tag to check and either output required HTML or not.

I’ve taken HTML from the “View page source” as it was output by the App block.

Say, for my store and inline block I can use code like this in “Custom Liquid” section:

{% unless customer.tags contains "form-submitted %}
  <div  id="shopify-block-ARVpmeHYxSGFGdVdTa__forms_inline_eQVnhW" 
        class="shopify-block shopify-app-block" data-block-handle="inline">
    <div  id='ARVpmeHYxSGFGdVdTa__forms_inline_eQVnhW'
          data-form-root='true'
          data-forms-id='forms-root-674933'
          data-forms-text-color='#1878b9'
          data-forms-button-background-color='#202020'
          data-forms-button-label-color='#ffffff'
          data-forms-links-color='#1878b9'
          data-forms-errors-color='#e02229'
          data-forms-text-alignment='center'
          data-forms-alignment='center'
          data-forms-padding-top='0'
          data-forms-padding-right='0'
          data-forms-padding-bottom='24'
          data-forms-padding-left='0'>
    </div>

    <script>
      window['ShopifyForms'] = {
        ...window['ShopifyForms'],
        currentPageType: "index"
      };
    </script>
  </div>
{% endif %}

Hello Tim1,

The app should be disabled afterwards?

https://www.zero-sense.ro

Like this. Works fine with inline forms, not tested with popups