New to chronoforms - got some questions.

XXasdasdasdas 18 Aug, 2014
So at the moment i'm using forms from formstack.com. But i really want to switch to chronoforms.

I have this form here:
http://www.formstack.com/forms/?1316170-RmxLpqoYmv

So my questions is, can I set up a dropdown field where I choose who I want to contact out of a list. And it will send the form to the specific email for that contact. What's that called in chronoform and where can i find it?


My second question is i have this dropdown called Angående* ( as you can see in my form)
By selecting "Andet" it switch to some other fields in the form, how can i setup that?

Regards.
GreyHead 19 Aug, 2014
Hi Hjalte1983,

Please see this FAQ for sending emails to different addresses.

To switch the display of blocks of form inputs you can use container elements to hold the blocks and use the Events tab to hide and show the containers depending on the drop-down selection.

Bob
XXasdasdasdas 18 Oct, 2014
Hi again.
I'm pretty sure i did as the FAQ told me to do. But it just wont send emails.

i called my select menu options :
em101=101 Hvidovre
em103=103 Kastrup
em104=104 Lyngby


Field Name and Field ID is tr

I added a custom code inside : onSubmit.
<?php
$recipient = JRequest::getString('tr', 'em101', 'post');
$emails = array (
  'em101' => 'lyngby01@rfk-kbh.dk',
  'em103' => 'lyngby02@rfk-kbh.dk',
  'em104' => 'lyngby03@rfk-kbh.dk' );
$form->data['email_to_use'] = $emails[$recipient];
?>

What i'm doing wrong?
This topic is locked and no more replies can be posted.