The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
Emailing form to Client based on form selections. - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: API (https://forums.formtools.org/forumdisplay.php?fid=17)
+--- Thread: Emailing form to Client based on form selections. (/showthread.php?tid=2225)



Emailing form to Client based on form selections. - fyrftr72 - Oct 10th, 2012

Is it possible to have 3 or 4 clients assigned to a form and then have the form only go to single client based on the selections made in the form.

If check_box A is selected the form only goes to client 3
If check_box B is selected the form only goes to client 1
etc..

Can this be done and if so how? Only thing I can see that might work are the filters, but how?

Thanks in advance for any help.

Gene




RE: Emailing form to Client based on form selections. - alexh - Oct 10th, 2012

Hey Gene,

Not sure what you mean "go to a single client". Do you mean send an email? If so, you can do what I just recommended to someone else:

The best way to do this, is to create two views.

In View "A", create a filter. The filter should say field_1 = "A"
In View "B". create a filter. The filter should say field_1 = "B"
... and so on.

Then, create a new email under the email tab. In advanced settings under the configuration tab, select view "A" under "Only submissions that fit into the following View(s)".

Once that email template is complete, create another email under the email tab. Follow the steps above but select "View B".

Let me know how that goes,
Alex


RE: Emailing form to Client based on form selections. - fyrftr72 - Oct 11th, 2012

Hi Alex and thanks for getting back to me. I thought this was the only way to do this after looking through the documentation. It seems a bit complicated, but I will definitely give it a whirl.

Thanks again and I will report back for either help or a success story.

Gene




RE: Emailing form to Client based on form selections. - alexh - Oct 11th, 2012

Yeah I can see how this seems overwhelming, but I think if you follow my instructions you will get the hang of it. Let me know if I can help, or explain it enter.

Good luck!
Alex


RE: Emailing form to Client based on form selections. - fyrftr72 - Dec 4th, 2012

Hey Alex, the solution works great! Thanks. I have 1 minor issue, on one of my views/emails there are 2 possible choices going to this 1 client. I have
2 filters with the same fields:

Fields = Trips
Operator = Equals
Value = Honduras April 2013


The second is identical except for the Value = Honduras July 2013

It will not submit with both of these, only one or the other.
I guess I will have to make another view and email to use the second filter.
I tried the "Like" option for the operator but no dice.

Is there a way around this or should I just go ahead and make another setup, View/Email with a different name same client?

Thanks for your help, Gene


RE: Emailing form to Client based on form selections. - alexh - Dec 5th, 2012

Interesting, I guess there isn't an "or" operator to put between. I think you will have to create another view.

Unless I'm missing something, it might be a good feature request to add operators between statements (or, and).