Page 1 of 1

FormBuilder - Email to User - if fields match

Posted: Fri Jul 29, 2016 2:46 pm
by sumpson
Hello all,

Whenever a user fills in a form on my website I want them to have the data in their supplied e-mail. However I do not always want this to happen, currently I have set up this in the e-mail template:

{if $distance > "105" && $price < "2500"}
special content
{else}
normal content
{/if}

However it would be much better {if $distance > "105" && $price < "2500"} is matched there is no e-mail sent at all. Is there a way to achieve this with FormBuilder?

Any help is much appreciated.

Re: FormBuilder - Email to User - if fields match

Posted: Sat Jul 30, 2016 5:27 pm
by velden
You can use a UDT to do whatever you want on submission: field type '*Call A User Defined Tag With the Form Results'

Of course you will have to remove the '*Email results... ' field

Then in your UDT to whatever you like (checks and sending of email)

Re: FormBuilder - Email to User - if fields match

Posted: Mon Aug 01, 2016 9:23 am
by sumpson
Thanks for your reply, however I don't know how to send a mail with a UDT. I found this: https://www.i-do-this.com/blog/FormBuil ... ariable/57 will try to work with it.