Avada Forums Community Forum Avada Forms – Hide empty fields/custom mail Reply To: Avada Forms – Hide empty fields/custom mail

ssaad
Participant
Post count: 20

Hi,

Normally, if the field is invincible, it will not be in the mail.

or send a custom mail in php !

https://theme-fusion.com/documentation/avada/avada-for-developers/avada-builder-hooks-actions-filters/

//example


add_action( 'fusion_form_submission_data', 'my_fct_after_submit', 1, 2 );
function my_fct_after_submit( $data, $id )
{
	if ($id == xxx)
	{//id of your Avada form

		$body = "
			Hello {$data['data']['firstname']},

		";

		wp_mail("recipient", "A title", $body);
	}
}
  • This reply was modified 1 month, 2 weeks ago by ssaad.