Re: custom forms - data collection
Hey Jacque,
Your form looks awesome! I'm trying to create something similiar. I see your page is called like other EZ pages via "main_page=SOMETHINGHERE", but I don't really understand how that works. Is "specialorder" a physical file?
Also, do you write to the database? Do you only allow logged in users to submit?
Thanks
Paul
Re: custom forms - data collection
I use code in this thread in conjunction with the About_Us mod in 139h and am wondering whether either needs to be upgarded for v150.
However, due to the diverse applications of the code and mod, I am not seeking any specific solution as yet, but rather am just enquiring into the issue.
TIA
Re: custom forms - data collection
One more question
what zen string do I use to add a standard state dropdown field to my form?
Re: custom forms - data collection
Quote:
Originally Posted by
clsmky
Ok sorry If I missed it, but I read this entire thread and couldnt find my answer.
Has anyone figured out how to send a confirmation email to the customer after the "you message has been sent" success page?
I have no complaints other than now I want to have a confirmation email sent. I'm using this for a physical catalog request (
you can see it here) and I've got it to work perfectly. I get all the correct info and everything lands where its supposed to when its sent. It even checks if the patron is logged into the site to fill in some of the fields. Once the form is submitted, it goes to a
page that states that the request has been sent. I would like it to send a confirmation email to the customer thanking them for their interest in the company and so on.
How do I do that? Just need to be pointed in the right direction is all.
I guess I should contribute to this thread since Dr. Byte was able to help me out so quickly.
------------------------------------------------------------------------------------------------------------
under the header.php file for my form I added the following under the line that says
PHP Code:
$email_html = nl2br($email_text);
This is my custom code:
PHP Code:
//assemble customer email contents:
$customer_email_text =
CUSTOMER_EMAIL_GREETING . '' . $full_name . ',' . "\n" .
"\n" .
CUSTOMER_EMAIL_BODY_TEXT . "\n" .
"\n" .
CUSTOMER_EMAIL_BODY_QUESTIONS . "\n" .
"\n" .
CUSTOMER_EMAIL_BODY_THANKS . "\n\n" .
$customer_email_text = zen_output_string_protected($customer_email_text);
$customer_email_html = nl2br("\n" . $customer_email_text);
then after the line that starts with "zen_mail(STORE_NAME...." I added the following:
PHP Code:
//send email to customer
zen_mail($full_name, $email_address, CUSTOMER_EMAIL_SUBJECT, $customer_email_text, STORE_NAME, STORE_OWNER_EMAIL_ADDRESS, array('EMAIL_MESSAGE_HTML' => $customer_email_html), 'catalog_req');
to my languages file I added:
PHP Code:
define('CUSTOMER_EMAIL_GREETING','Hello ');
define('CUSTOMER_EMAIL_SUBJECT', 'Your Catalog is on its way!');
define('CUSTOMER_EMAIL_BODY_TEXT', 'Thank you for your interest in our company and its products. We will mail out a copy of our 2011 catalog for you today and you should be receiving it in a matter of a few days. ');
define('CUSTOMER_EMAIL_BODY_QUESTIONS', 'If you have any questions regarding our company or any of the products you see in the catalog or online, please feel free to contact us through this email address or call us toll free at <removed phone number> .');
define('CUSTOMER_EMAIL_BODY_THANKS', 'Thanks again and have a great day!');
For the html email template (catalog_req) I simply made an html file that consists of a table containing our logo, information (just like a letterhead) and the $EMAIL_MESSAGE_HTML so that it would populate what is defined in the language files.
If you want to create or take a look at my files, I can send them to you through email. I dont want to post them here because I originally worked off of a TM file (per my boss) that I completely hacked and virtually started from scratch. So most of the code is for my custom template but I don't mind sharing with those that want it anyway.
2 Attachment(s)
Re: custom forms - data collection
:cool: WOW.... this 3 year old post, just MADE MY FREAKIN DAY:clap:
I was able to finally create my contact page with a Dropdown in the Subject Line and have it actually show up in the email correctly.
Thanks so much for posting. This COMPLETE THREAD HAS BEEN HEAVEN SENT!!
Actual Contact Page:
Attachment 10340
This is the Email Rendering after I hit the send button:
Attachment 10341
If you like the *Event Date* little dropdown, I found it on another Zen Thread, but the script can be found at http://www.dynamicdrive.com/dynamici...oncalendar.htm
***OFFICIALLY TIME TO DONATE****
:lookarounBut Where in the World is the Donate Button Now... gotta find it, Not use to this new format yet LOL
------------------------------------------
Quote:
Originally Posted by
cliffvt
Diva hope you're good today!! Yes, you guessed it, today I am struggling with "pull_down menus" - implemented this suggested code, but on the form it displays a blank drop-down menu. If I leave all fields blank and then press "Submit" , as expected, it brings up errors for all the other fields, NOT the drop-down one, but viola!, the pulldown field is magically populated. Any ideas on what I am doing wrong here, seeing that you've mastered it?
here is my code:
HEADER_PHP:
TEMPLATE:
Any ideas at all?
Cheers
Cliff
Re: custom forms - data collection
Quote:
Originally Posted by
ljdream00
:cool: WOW.... this 3 year old post, just MADE MY FREAKIN DAY:clap:
I was able to finally create my contact page with a Dropdown in the Subject Line and have it actually show up in the email correctly.
Thanks so much for posting. This COMPLETE THREAD HAS BEEN HEAVEN SENT!!
Actual Contact Page:
Attachment 10340
This is the Email Rendering after I hit the send button:
Attachment 10341
If you like the *Event Date* little dropdown, I found it on another Zen Thread, but the script can be found at
http://www.dynamicdrive.com/dynamici...oncalendar.htm
***OFFICIALLY TIME TO DONATE****
:lookarounBut Where in the World is the Donate Button Now... gotta find it, Not use to this new format yet LOL
------------------------------------------
I'm glad you were able to get your form up and running like you wanted. I threw my arms up in the air once I did it.
Re: custom forms - data collection
I just use Appnitro's MachForm system and can create ANY form you care to mention (and embed it on my ZC sites) in under 3 minutes...
Re: custom forms - data collection
Thanks Schoolboy for that info. I will keep that in mind next time. I think I saw it mentioned in this thread when I was reading, but when they said it was a paid form, I quickly let that thought go.
Re: custom forms - data collection
The software costs a few dollars. Think of the HOURS it takes to create one custom form in ZC... If you value your time at $30 / hour, how much have you spent?
Re: custom forms - data collection
Quote:
Originally Posted by
schoolboy
The software costs a few dollars. Think of the HOURS it takes to create one custom form in ZC... If you value your time at $30 / hour, how much have you spent?
And factor in the fact that anyone building sites for clients for money should be able/willing to invest in tools to assist the site build process. There are serveral tools I have invested in to assist me in my efforts.. this sounds like another one I shall investigate investing in.. Saving my time is worth the investment IMHO..