Hello everyone,
I created a form with some fields are optional, and send a template email.
I would hide in email form fields not filled in, so you do not see anything in email
is it possible?
Thanks in advance for your time.
Alex
ps: sorry for my English (translated by google) :-)
I created a form with some fields are optional, and send a template email.
I would hide in email form fields not filled in, so you do not see anything in email
{something}
.is it possible?
Thanks in advance for your time.
Alex
ps: sorry for my English (translated by google) :-)
Hi ask,
In the OnSubmit Before Email box add this code:
This is usually Ok for a simple form. For a form with many inputs or repeatign inputs there's a much fuller more complex solution here.
Bob
In the OnSubmit Before Email box add this code:
<?php
$something = JRequest::getString('something', '', 'post');
JRequest::setVar('something', $something);
?>
This will replace {something} with '' (an empty string).This is usually Ok for a simple form. For a form with many inputs or repeatign inputs there's a much fuller more complex solution here.
Bob
This topic is locked and no more replies can be posted.