Text area content in email reply

shieldfire 07 Jul, 2015
Hi,

Neat extension so far; However I have problems in parsing the text area content.
If the text area contains one row I get the content in the email.
If the text area contains several rows I get some kind of array.


Deltagare{Deltagare AB}
Deltagaretest c
Deltagaretest d
Deltagaretest e


First line represents 3 rows. (I am trying to register tournament participants, one name per line).
Also, how do I put in a space between Label/Field ID and content?
GreyHead 07 Jul, 2015
Hi shieldfire,

Please see this post

You can edit the HTML in the Email template to add styling or extra spaces.

Bob
shieldfire 07 Jul, 2015
First entry in OnSubmit is now
<?php
$form->data['Deltagare_AB'] = nl2br($form->data['Deltagare_AB']);
?>

I added 4 rows of participants in the text area Deltagare_AB and resent the form, now I still get


Deltagare{Deltagare AB}
Deltagaretest c
Deltagaretest d
Deltagaretest e


In my email.
GreyHead 08 Jul, 2015
Hi shieldfire,

I'm missing something here. Please drag a Debugger action into the On Submit event, then submit the form and post the debug - including the 'dummy emails' results here.

Bob
shieldfire 08 Jul, 2015
This is what I get. The article is "correct" but the email is still incorrect.

Array
(
    [option] => com_chronoforms5
    [chronoform] => Anmälan_Tyresö_JGP
    [event] => submit
    [Klubb] => tyresö
    [Kontaktperson] => Martin
    [ePost] => martin@skjoldebrand.org
    [MobilNr] => 0707948667
    [Betalning] => 0
    [Deltagare_AB] => nisse<br />
sven<br />
latifa<br />
ying<br />
louise
    [DeltagareC] => oskar
    [DeltagareD] => robin
    [DeltagareE] => jesper
    [button5] => Submit
    [ip_address] => 37.196.77.221
)

Array
(
)

Errors

Array
(
)

Debug Info

Array
(
    [2] => Array
        (
            [Email] => Array
                (
                    [0] => An email with the details below was sent successfully:
                    [1] => To:martin@skjoldebrand.eu
                    [2] => Subject:Anmälan till JGP
                    [3] => From name:TSK sajt
                    [4] => From email:noreply@tyresoschack.se
                    [5] => CC:
                    [6] => BCC:
                    [7] => Reply name:
                    [8] => Reply email:
                    [9] => Attachments:
                    [10] => Array
                        (
                        )

                    [11] => Body:
<table>
<tr><td>Kontaktperson</td><td>Martin</td></tr>
<tr><td>ePost</td><td>martin@skjoldebrand.org</td></tr>
<tr><td>Mobilnummer</td><td>0707948667</td></tr>
<tr><td>Betalning</td><td>0</td></tr>
<tr><td>Deltagare</td><td>{Deltagare AB}</td></tr>
<tr><td>Deltagare</td><td>oskar</td></tr>
<tr><td>Deltagare</td><td>robin</td></tr>
<tr><td>Deltagare</td><td>jesper</td></tr>
</table><br /><br />IP: 37.196.77.221
                )

        )

)
GreyHead 08 Jul, 2015
Hi shieldfire,

This input name is Deltagare_AB but you have {Deltagare AB} in the template - the _ is missing.

Bob
shieldfire 08 Jul, 2015
Oh duh ... I must've misunderstood how that worked =(
Sorry for wasting your time ...
This topic is locked and no more replies can be posted.