multiple Fields show in Email

danse 28 Nov, 2015
Hi,
how can i get multiple fields also displayed in Emails?

Thanks
GreyHead 28 Nov, 2015
Hi danse,

Please drag a Debugger action into the On Submit event, then submit the form and post the debug results here so tat I can see what inputs you have in your multiplier.

Bob
danse 28 Nov, 2015

This is private content



here the results
GreyHead 29 Nov, 2015
Hi danse,

There's no sign of a multiplier there - what exactly is the problem you have? What isn't showing?

If the problem is the missing labels then you can edit the Template HTML to add those.

Bob
danse 29 Nov, 2015
Screenshot Attached.
thought i had done that earlier, sorry!
Maybe i didn't hit the "upload" Button.

in hidden Content you can check my Form:

This is private content



Thank you.
GreyHead 29 Nov, 2015
Hi danse,

Your inputs all have the same name so only the last one will be submitted. Please see this FAQ for setting multipler names

You can add PHP in the Email template to conditionally show/hide parts of the content.
<?php
if ( !empty($form->data['zahlung']) && $form->data['zahlung'] == 2 ) {
  echo '<div>{text71} . . .</div>';
}
?>

Bob
danse 13 Dec, 2015
Hi,
thank you.
still can't get that ... custom Field "sepa1" or "custom16" into Email Content.
Wont show up in Email.

i tried:
{sepa1} <br>
{fin-custom16}<br>
{custom16}<br>
{form-row-custom16}

but nothing.
i also set a label for that custom Field and tried {label..}
but this doesn't worked.

and i dont understand that Multiple Content in Email.
The Link you've send me and the "How To"... i used that replacer tag in Email and nothing ...

Heres Debug in privat section:

This is private content

GreyHead 14 Dec, 2015
Hi danse,

You need to set the first Multiplier to Hide to stop the [__N__] entry,

In the data you posted the second multiplier entry is {domm.0.data} but the Repeater code in the FAQ should let you output them all.

Bob
danse 14 Dec, 2015
Oh ... i really don't understand.
I tried some more hours yesterday and adopt all Settings from Demo and so on...
Also with the FAQ.

Problem is i need in Output (Email) three Things.
The tag: "www."
the Domain: "domain"
the end: ".com"
in one Line. and if there will be more Domains in the End it should look like this:

Domains:
www.domain1.de
www.domain2.com

This is private content



Thank you for Help.
GreyHead 14 Dec, 2015
Hi Danse,

I changed the settings a bit and I think that it is working now. Please test.

Best wishes

Bob
danse 15 Dec, 2015
Hi Bob,
thank you alot!
I've got it.
i also had {data} in the replacer but this .... was ... stupid.
i noticed that i have to make www.{domain}{suffix}<br> in between that replacer. wow.

Could you also give me a tipp how i can show Up that Custom field 77 in Email? I dont get it.
It just wont show up. This are some SEPA Payment Informations which customer gets on Homepage with a random generated Number. And this whole Bunch of Text i also need to get via Email.
GreyHead 16 Dec, 2015
Hi Danse,

I see that you worked out the repeater code :-)

For other readers here's the example
{repeater:domm}
<p>www.{domain}.{endung}</p>
{/repeater}


For the random string I edited the custom Code to add
$form->data['random'] = generateRandomString();
Then put {random} in the Custom element 77. I also added a hidden input named 'random' there so that the value is submitted with the form data. You can change the names to something more useful if you like.

Bob
danse 17 Dec, 2015
Hi Bob,
awesome.
since you made that number connected to that "random" tag i now can copy the whole Text into Email and the only Part which changes is {random} and this i inserted and it works perfectly in Email. :-)

Thank you.
This topic is locked and no more replies can be posted.