html-forms icon indicating copy to clipboard operation
html-forms copied to clipboard

When adding fields via php filter, they are not availible in the email

Open arnelap opened this issue 4 years ago • 2 comments

eg add_filter( 'hf_form_markup', function( $markup ) { $markup .= ''; return $markup; });

does not provide hiddenFieldUrl to the notification email.

https://wordpress.org/support/topic/adding-hidden-field-value-to-notification-email/

arnelap avatar Jun 30 '20 09:06 arnelap

@dannyvankooten Do you have a workaround or idea on how to fix this issue? Adding fields programmatically instead of via the GUI is preferable as I can control styling etc to a fine degree for my clients.

intelligence avatar Jun 10 '21 08:06 intelligence

@intelligence I am terribly sorry for the late reply. Your clients can still use [HIDDEN_FIELD_NAME] in the email message body, despite it not being stated as an available tag. Please note that the field name has to be fully uppercased with any spaces converted to underscores. Will look into a better solution for this.

dannyvankooten avatar Mar 02 '22 07:03 dannyvankooten