-
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
HTML Forms' validation is based on the form's post meta. When a form is saved in the WP backend, the required & e-mail fields are serialized & saved to _hf_settings. The required fields are extracted with JS from the #hf-form-editor field, which is populated by the post content.
A possible solution would be to ask the HTML forms plugin creator to add a filter to functions.php:100 return $form;, so we can inject our form code (everything inside the
<form {!! $attributes->merge($form->attributes) !!}>
<input type="hidden" name="_hf_form_id" value="{{ $form->ID }}" />
<div style="display: none;">
<input type="text" name="_hf_h{{ $form->ID }}" value="" />
{!! $hidden !!}
</div>
<div class="hf-fields-wrap">
{!! $slot !!}
<noscript>Please enable JavaScript for this form to work.</noscript>
</div>
</form>Metadata
Metadata
Assignees
Labels
No labels