Problem: I would like to send an email notification when a Form is submitted. The email address is stored as a custom field on the post where the Form is displayed.
Solution: Add a generic email field to your Form, hide it with CSS, and use the wpv-post-field shortcode to supply the default value like this:
<div style="display:none;"> [cred_generic_field field='hidden-email-address' type='email' class='' urlparam=''] { "required":0, "validate_format":0, "persist":1, "default":"[wpv-post-field name='wpcf-lawyer-email' id='$current_page']" } [/cred_generic_field] </div>
Relevant Documentation:
https://toolset.com/documentation/user-guides/inserting-generic-fields-into-forms/
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | - | - |
13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | - | - |
Supporter timezone: America/New_York (GMT-04:00)
This topic contains 12 respuestas, has 3 mensajes.
Last updated by andresG-3 hace 5 años, 7 meses.
Assisted by: Christian Cox.