-
AuthorPosts
-
June 11, 2020 at 2:08 pm #1221692
Hello, I have received the code for the registration form from a newsletter provider. Not exciting, just a normal form. But the provider has no interface to WordPress, so I have to include the form manually.
Is there a possibility to check the validation of the required fields as it is possible with the integrated form generator?
This is the form code:<form action="URL" method="post"> <fieldset> <label for="anrede">Anrede</label> <select name="anrede" id="anrede"> <option value="">Anrede*</option> <option value="Frau">Frau</option> <option value="Herr">Herr</option> </select> <label for="vorname">Vorname</label> <input id="vorname" type="text" name="vorname"> <br> <label for="nachname">Nachname</label> <input id="nachname" type="text" name="nachname"> <br> <label for="email">E-Mail-Adresse</label> <input id="email" type="email" name="email"> <br> <label for="permission" class="check">Permission</label> <input id="permission" type="checkbox" name="permission" class="check"> </fieldset> <fieldset> <input id="domain" type="hidden" name="domain" value="url.com"> <input id="id" type="hidden" name="id" value="newsletter-abonnement"> <button type="submit">Senden</button> </fieldset> </form>
June 11, 2020 at 2:12 pm #1221696I have already adjusted the whole thing a bit, but it still fails at the validation.
<form action="url_of_newsletter_provider" method="post" class="avia_ajax_form av-form-labels-hidden avia-builder-el-0 avia-builder-el-no-sibling avia_recaptcha_v3" data-avia-form-id="1" > <h3 class="">Newsletter Anmeldung</h3> <fieldset> <p class=" first_form form_element form_element_third" id="element_avia_1_1"> <label for="anrede">Anrede <abbr class="required" title="benötigt">*</abbr></label> <select name="anrede" class="select is_empty" id="avia_1_1"> <option value="">Anrede*</option> <option id="Frau" value="Frau">Frau</option> <option id="Herr" value="Herr">Herr</option> </select> </p> <p class=" form_element form_element_third" id="element_avia_2_1"> <label for="avia_2_1">Vorname <abbr class="required" title="benötigt">*</abbr></label> <input name="avia_2_1" class="text_input is_empty" type="text" id="avia_2_1" value="" placeholder="Vorname*"> </p> <p class=" form_element form_element_third" id="element_avia_3_1"> <label for="avia_3_1">Nachname <abbr class="required" title="benötigt">*</abbr></label> <input name="avia_3_1" class="text_input is_empty" type="text" id="avia_3_1" value="" placeholder="Nachname*"> </p> <p class=" first_form form_element form_fullwidth" id="element_avia_4_1"> <label for="avia_4_1">E-Mail <abbr class="required" title="benötigt">*</abbr></label> <input name="avia_4_1" class="text_input is_email" type="text" id="avia_4_1" value="" placeholder="E-Mail*"> </p> <p class="hidden"><input type="text" name="avia_5_1" class="hidden " id="avia_5_1" value=""></p> <input class="av-recaptcha-verify-token is_empty av-verify-recaptcha-0" type="hidden" value="" name="av_recaptcha_token"> <input class="av-recaptcha-verify-token-version av-verify-recaptcha-0" type="hidden" value="avia_recaptcha_v3" name="av_recaptcha_token-version"> <div class="av-recaptcha-error"></div> <div id="avia_6_1" class="av-recaptcha-area first_form form_element form_fullwidth av-last-visible-form-element av-verify-recaptcha-0" data-container_class="" data-custom_class="" data-context="av_contact_form" data-token_input="av_recaptcha_token" data-version="avia_recaptcha_v3" data-theme="light" data-size="compact" data-score="0.5" data-text_to_preview="" data-value=""></div> <p class="av_form_privacy_check av_contact_privacy_check first_form form_element form_fullwidth" id="element_avia_7_1"> <input name="avia_7_1" class="input_checkbox is_empty" type="checkbox" id="avia_7_1" value="true"> <label class="input_checkbox_label" for="avia_7_1">Ich willige in die Verarbeitung der hier eingegebenen Daten zur Bearbeitung meines Anliegens ein. <strong>Sie können diese Einwilligung jederzeit mit formloser Mitteilung an uns widerrufen</strong>. Details entnehmen Sie unserer <a href="url_of_privacy" target="_blank">Datenschutzerklärung</a> <abbr class="required" title="benötigt">*</abbr></label> </p> <p class="form_element "> <input id="domain" type="hidden" name="domain" value="myurl.de"> <input id="id" type="hidden" name="id" value="newsletter-abonnement"> <input type="hidden" value="1" name="avia_generated_form1"> <input type="button" value="Für Newsletter anmelden" class="button av-verify-recaptcha-0 av-recaptcha-submit" data-sending-label="Sende" title="Vor dem Senden verifizieren wir dass Sie ein Mensch sind."> <input type="submit" value="Für Newsletter anmelden" class="button avia_button_inactive av-recaptcha-submit-real" data-sending-label="Sende" style="display: none;"> <div class="av-google-badge-message">Diese Seite wird durch reCAPTCHA geschützt und es gelten die Google <a href="https://policies.google.com/privacy">Datenschutzerklärungen</a> und <a href="https://policies.google.com/terms">Nutzungsbedingungen</a></div> </p> </fieldset> <div class="avia-disabled-form">Dieses Kontaktformular ist momentan deaktiviert, da Sie den Google reCAPTCHA-Service noch nicht akzeptiert haben. Dieser ist für die Validierung des Sendevorgangs jedoch notwendig</div> </form>
- This reply was modified 4 years, 5 months ago by langnaese.
June 16, 2020 at 3:06 pm #1223057Hi langnaese,
Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)
You just need to write your own validation script.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.