Personalized checkout and custom promotions with Shopify Scripts
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hello,
I would like a simple script in global.js which follows the logic below but I need your help in writing the script.
If "Name" field = blank
Hide "Comment" field
Else
Show "Comment" field
Can someone please help me? I provided a screen shot of the form and its HTML.
I understand there are multiple form apps that have conditional logic but I want this to be a learning experience for me. Thank you.
The shopify store is https://permaink.myshopify.com/pages/contact with the store PW = "help".