Hi. I want to show the following text at the bottom of every form.
By submitting this form, you agree to our privacy policy.
Is there a way to do it once? That way we won't forget to add it in the future.
For future devs, I solved it with this hook: add_filter('frm_filter_final_form', function ($html) { return $html . ' <a href="#">privacy policy</a>.'; }, 10);
Good solution Luis! Nice job!
You can create a form with just the agreement and add it to each of your forms as an embedded form. There's no way to add it automatically to each form, but with an embedded form, you build it once, and reuse it. Embedded forms are reusable components.
<p>I found the frm_filter_final_form hook. Looks like what I was looking for, as users won't accidentally forget to add it.</p><p>Do you have an opinion on this approach?</p>
Please login or Register to submit your answer