Hi,
Thanks for this component, I am trying to implement on multiple client sites but need an answer to to following.
1) Multiple fields in Subject.
As per instructions on found on this forum, I have the following on the 'onsubmit before'
my special field subject=subject.
However the email comes in with a blank subject. What am I doing wrong? Do I have to declare 'subject' in the form itself?
2) Multiple fields in 'from email'
Similarly I have been trying to get the senders first and last name in my 'from email'. This will make it easier for the sales team to reply to the potential customer.
This is what I have in my onsubmit before code
3)To avoid rework, after I pay the license fee can I simply get rid of the back link from the code rather than reinstall? Is there a major difference between the versions? I will install the 'licensed' version for other clients but for this one I wanted to avoid that.
Thanks for your help.
-Jacob
Thanks for this component, I am trying to implement on multiple client sites but need an answer to to following.
1) Multiple fields in Subject.
As per instructions on found on this forum, I have the following on the 'onsubmit before'
<?php $rows[0]->subject = "Investor Registration:".$_POST['Name'].''.$_POST['LName'];?>
'Name' and 'LName' are the fields that I have in my form for the first and last names.my special field subject=subject.
However the email comes in with a blank subject. What am I doing wrong? Do I have to declare 'subject' in the form itself?
2) Multiple fields in 'from email'
Similarly I have been trying to get the senders first and last name in my 'from email'. This will make it easier for the sales team to reply to the potential customer.
This is what I have in my onsubmit before code
<?php
$_POST[$paramsvalues->fromnamefield] = $_POST['Name']." ".$_POST['LName'];
?>
Do I need to input anything else in the 'from email' sections in the 'special fields' and 'general' tabs of the component? Do I have to declare anything in the form itself? I tried variations but no luck
3)To avoid rework, after I pay the license fee can I simply get rid of the back link from the code rather than reinstall? Is there a major difference between the versions? I will install the 'licensed' version for other clients but for this one I wanted to avoid that.
Thanks for your help.
-Jacob
Solved issue # 1 by doing the following:
Added
Added
<input type="hidden" name="subject" value="" />
in the table and in the onsubmit before<?php $_POST['subject'] = "Investor Registration: ".$_POST['Name'].' '.$_POST['LName']?>
onto # 2
used the same priciple for #2 on my list and it worked.
so the final onsubmit before code looks like this
So the only q remaining is # 3. Please let me know.
so the final onsubmit before code looks like this
<?php
$_POST['subject'] = "Investor Registration: ".$_POST['Name'].' '.$_POST['LName'];
$_POST['fullname'] = $_POST['Name'].' '.$_POST['LName'];
?>
In the form<input type="hidden" name="subject" value="" />
<input type="hidden" name="fullname" value="" />
and in special fieldsfrom name=fullname
subject=subject
hopefully this info will prevent yet another asking a variation of the same Q🤣
So the only q remaining is # 3. Please let me know.
Hi Jacob,
I'm glad you got the 2 first issues solved the best and easiest way, regarding #3, once you purchase we will send you an email with the licensed files and also some instructions on how to make your installed version the same as the licensed one, so you don't uninstall or lose any data!
There are no differences between the 2 versions except the link!
Best regards,
Max
I'm glad you got the 2 first issues solved the best and easiest way, regarding #3, once you purchase we will send you an email with the licensed files and also some instructions on how to make your installed version the same as the licensed one, so you don't uninstall or lose any data!
There are no differences between the 2 versions except the link!
Best regards,
Max
Hi Max,
Thanks for your response. The client is happy with the results and so am I. Thank you for this time saver of a component.
Checks in the mail🙂
-Jacob
Thanks for your response. The client is happy with the results and so am I. Thank you for this time saver of a component.
Checks in the mail🙂
-Jacob
Form code snippet:
In Special Fields, Subject field name:
subject
On Submit code - before sending email:
Result is the following subject line:
Anfrage von Webseite von: Array
I dont understand why it gives me Array.
Hmm. Somebody with a idea?
<input type="text" name="person1[]" value="" />
<input type="hidden" name="subject" value="" />
In Special Fields, Subject field name:
subject
On Submit code - before sending email:
<?php $_POST['subject'] = "Anfrage von Webseite von: ".$_POST['person1']?>
Result is the following subject line:
Anfrage von Webseite von: Array
I dont understand why it gives me Array.
Hmm. Somebody with a idea?
Hi paralax,
Because the square brackets in 'name="person1[]' create an array variable, they are only necessary if you have several related fields (like a list of checkboxes). Use 'name="person1' and it should work OK.
Bob
Because the square brackets in 'name="person1[]' create an array variable, they are only necessary if you have several related fields (like a list of checkboxes). Use 'name="person1' and it should work OK.
Bob
Thats the clue. I had the brackets on every inputfield. I removed all of them from the whole form. Now the Subject in the e-Mail display the wanted infomation. I dont know why they where in the form but i think it cames from the facileforms component i used before. Its a leftover. :silly:
A sideeffect is that the styling of my input boxes now differs from my css styling if the iputfield is validated. But i think that could i figure out by myself.
So far thank you much for your excellent Support =)
I love this component.🙂
A sideeffect is that the styling of my input boxes now differs from my css styling if the iputfield is validated. But i think that could i figure out by myself.
So far thank you much for your excellent Support =)
I love this component.🙂
This topic is locked and no more replies can be posted.