Hi!
I've created a custom multiselect element.
Now I need to process selected data and paste it into Email template...
Don't know how to make it: receive array, process(format and paste into global variable (?) ) it and paste into template . In plain php it is like this:
Thank you!
I've created a custom multiselect element.
Now I need to process selected data and paste it into Email template...
Don't know how to make it: receive array, process(format and paste into global variable (?) ) it and paste into template . In plain php it is like this:
<?php
$test=$_POST['test']; /*select name*/
if ($test){
foreach ($test as $t)
{
echo 'You selected ',$t,'<br />';
}
}
?>
Thank you!
Thank you!
Here I've some difficulties. My select elements looks like this:
Also at the top of On Submit event I've added Handle Arrays where at "White fields list" I've written adv. Do I need more actions? Or now I can add data straight to template (which placeholder should I use)?
Here I've some difficulties. My select elements looks like this:
<select id="myList" name="adv[]" multiple="multiple" disabled='disabled' size="8">
<option value="one">„one“</option>
<option value="two">„two two“</option>
...
</select>Also at the top of On Submit event I've added Handle Arrays where at "White fields list" I've written adv. Do I need more actions? Or now I can add data straight to template (which placeholder should I use)?
Hi 01,
A disabled input does not submit anything :-(
Please leave the White Fields List empty.
Bob
A disabled input does not submit anything :-(
Please leave the White Fields List empty.
Bob
The disabled options is made for JS - so it could be omitted. The multiselect works - tested on separate php file.
"White Fields" changed to blank. Delimeter is set to default - ".", as it was.
As my custom select has "input_custom_10" field name - I've putted it to mail template with placeholders. But still no result... I receive mail with this line:
"White Fields" changed to blank. Delimeter is set to default - ".", as it was.
As my custom select has "input_custom_10" field name - I've putted it to mail template with placeholders. But still no result... I receive mail with this line:
{input_custom_10}
Hi 01,
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
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
Hi 01,
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
No problem, here it goes:
Warning: preg_match() [function.preg-match]: Unknown modifier 'n' in /var/www/vhosts/xxx.com/httpdocs/administrator/components/com_chronoforms/form_actions/custom_serverside_validation/custom_serverside_validation.php(18) : eval()'d code on line 6
Data Array:
Array
(
[option] => com_chronoforms
[tmpl] => component
[chronoform] => Zakaz_reklamy
[event] => submit
[Itemid] =>
[lang] => ru
[input_text_0] => Name
[input_text_1] => mail@mail.com
[input_text_2] => 1234
[input_datetime_11] => 2012-10-26
[input_text_4] => Text
[chrono_verification] => 6jz4q
[input_submit_8] => Выслать
[06b93e0a57028dca8da19a06e607fde1] => 1
[language] => ru-RU
)
Validation Errors:
Array
(
)
Debug Data
Core Captcha
Passed the core captcha check!
email
2
Result An email has been SENT successfully from (xxx.com| Заказы) xx.com to xxx
Body
Заказ рекламного объявления
Имя/Фамилия: Name
Э-почта: mail@mail.com
Реквизиты: 1234
Названия газет: {input_custom_10}
Дата публикации: 2012-10-26
Текст: Text
Submitted by 78.158.19.69
Attachments array ( )
18
Result An email has been SENT successfully from (xxx.com| Заказы) xxx.com to mail@mail.com
Body
Заказ рекламного объявления выслан!
Имя/Фамилия: Name
Э-почта: mail@mail.com
Реквизиты: 1234
Газеты: {input_custom_10}
Дата публикации: 2012-10-26
Текст: Text
Attachments array ( )
So, as I see the {input_custom_10} is absent in array😟
Hi 01,
Yes, it looks as though your JavaScript is not removing the disabled attribute :-(
Bob
Yes, it looks as though your JavaScript is not removing the disabled attribute :-(
Bob
Also tried without "disabled='disabled'" - no luck.
But if I copy generated HTML output to blank php file and debug form - everything works...
But if I copy generated HTML output to blank php file and debug form - everything works...
Hi 01,
Sorry, there isn't enough information here to give me any clues about what is happening.
Please post a link to the form so I can take a quick look.
Bob
Sorry, there isn't enough information here to give me any clues about what is happening.
Please post a link to the form so I can take a quick look.
Bob
No problem, here it is:
http://xxx
As I looked through the FireBug - the custom element doesn't participate in POST at all😟 No data is sent
http://xxx
As I looked through the FireBug - the custom element doesn't participate in POST at all😟 No data is sent
Hi 01,
Well no, the select is still disabled. There's an <ol> list with the same entries but it doesn't do anything as far as I can see.
And there is a JavaScript error
Bob
Well no, the select is still disabled. There's an <ol> list with the same entries but it doesn't do anything as far as I can see.
And there is a JavaScript error
TypeError: $("toggleLink") is null
http://slavija.lt/ru/component/chronoforms/?chronoform=Zakaz_reklamy
Line 112
Bob
This topic is locked and no more replies can be posted.
