Liquid, JavaScript, Themes
Hello,
i have a Callback contact form on my store, but everytime i want to send the form, it say's "e-mail is not valid" but on this contact form i dont even have a e-mail. so i dont know what to do. i deleted the e-mail already, but know it is on type=hidden.
But it dont work if i delete it. So i need some help please. here is the code:
<div class="section-header section-header--breadcrumb"> {% include 'breadcrumb' %} </div> {% form 'contact' %} {% if form.posted_successfully? %} <p class="note form-success"> {{ 'contact.form.post_success' | t }} </p> {% endif %} {% for error in form.errors %} {{ form.errors | default_errors }} {% endfor %} <div class="contact grid"> <div class="grid__item post-large"> <h1 class="page-header"> {{ page.title }} </h1> </div> <div class="cart__row"> <div class="grid"> <div class="grid__item post-large--three-quarters"> <div class="grid__item wrapper"> <div class="grid__item"> {{ page.content }} </div> <div class="grid__item medium--one-half post-large--one-half"> <label for="ContactFormGender"></label> <select class="contact-form-fixed-border" id="ContactFormGender" name="contact[Geschlecht]"> <option>Herr</option> <option>Frau</option> <option>Keine Angabe</option> </select> </div> <div class="grid__item medium--one-half post-large--one-half"> <label for="ContactFormEmail" class="label--hidden">{{ 'contact.form.email' | t }}</label> <input class="contact-form-fixed-border" type="hidden" id="ContactFormEmail" name="contact[E-Mail]" placeholder="{{ 'contact.form.email' | t }}" autocorrect="off" autocapitalize="off" value="{% if form.email %}{{ form.email }}{% elsif customer %}{{ customer.email }}{% endif %}" required> </div> <div class="grid__item medium--one-half post-large--one-half"> <label for="ContactFormFirstname"></label> <input class="contact-form-fixed-border" type="text" id="ContactFormFirstname" name="contact[Vorname]" placeholder="Vorname"> </div> <div class="grid__item medium--one-half post-large--one-half"> <label for="ContactFormSurname"></label> <input class="contact-form-fixed-border" type="text" id="ContactFormSurname" name="contact[Nachname]" placeholder="Nachname"> </div> <div class="grid__item medium--one-half post-large--one-half"> {% assign name_attr = 'contact.form.phone' | t | handle %} <label for="ContactFormPhone" class="label--hidden">{{ 'contact.form.phone' | t }}</label> <input class="contact-form-fixed-border" type="tel" id="ContactFormPhone" name="contact[{{ name_attr }}]" placeholder="{{ 'contact.form.phone' | t }}" pattern="[0-9\-]*" value="{% if form[name_attr] %}{{ form[name_attr] }}{% elsif customer %}{{ customer.phone }}{% endif %}" required> </div> <div class="grid__item medium--one-half post-large--one-half"> <label for="ContactFormFrom"></label> <input class="contact-form-fixed-border" type="text" id="ContactFormFrom" name="contact[Von]" placeholder="von (z.B. 9:00 Uhr) (optional)"> </div> <div class="grid__item medium--one-half post-large--one-half"> <label for="ContactFormTo"></label> <input class="contact-form-fixed-border" type="text" id="ContactFormTo" name="contact[Bis]" placeholder="bis (z.B. 18:00 Uhr) (optional)"> </div> <div class="grid__item"> <label for="ContactFormMessage" class="label--hidden">{{ 'contact.form.message' | t }}</label> <textarea class="contact-form-fixed-border" rows="10" id="ContactFormMessage" name="contact[Nachricht]" placeholder="{{ 'contact.form.message' | t }}">{% if form.body %}{{ form.body }}{% endif %}</textarea> </div> <div class="grid__item"> <input type="submit" class="btn right" value="{{ 'contact.form.send' | t }}"> </div> {% endform %} </div> </div> <div class="grid__item post-large--one-quarter"> {% section 'account-service-block' %} </div> </div> </div> </div> {% include 'recaptchav3' %}
Hey @leon_blaschke
Gabe from Shopify here. Did you ever find a solution to the issue?
Best regards,
Gabe
Gabe | Social Care @ Shopify
- War meine Antwort hilfreich? Klicke Like um es mich wissen zu lassen!
- Wurde deine Frage beantwortet? Markiere es als Akzeptierte Lösung
- Um mehr zu erfahren, besuche das Shopify Help Center oder den Shopify Blog
Wie oft möchte man als Shopinhaber den eigenen Kunden eine bessere Checkout Experience anb...
By Gabe May 23, 2023So können Sie PayPal verwenden, um Zahlungen zu akzeptieren und Ihre Shopify-Rechnung zu...
By Kai Apr 14, 2023Vielen Dank an alle, die an unserem AMA mit 2H Media zur Planung ihres Marketingbudgets fü...
By Jacqui Apr 13, 2023