|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
Contact Form Help (code included)Okay i had this working earlier today. I started to make updates, and a few edits but, now it's not working right. In theory you fill out your info it's sent to an email address, and it gives the thank you for submitting message. Then there is supposed to be a link that takes you back to the home page. This was all working fine until I added more fields. Here is my includedobj code _contact.cfm <cfoutput> <!----Default Values ----> <cfset showForm=1> <cfparam name="form.firstName" default=""> <cfparam name="form.lastName" default=""> <cfparam name="form.emailAddress" default=""> <cfparam name="form.companyName" default=""> <cfparam name="form.phoneNumber" default=""> <cfparam name="form.address" default=""> <cfparam name="form.apt" default=""> <cfparam name="form.city" default=""> <cfparam name="form.state" default=""> <cfparam name="form.zipCode" default=""> <cfparam name="form.comments" default=""> <cfset error=""> <!----check if form has been submitted---> <cfif isdefined("form.submit")> <!---form has been submitted so we don't need to show the form---> <cfset showform=0> <!----Send Email----> <cfmail to="#application.config.contact.contactEmail#" from="#form.emailAddress#" subject="Website Contact Form"> A message has been submitted from the website: First Name:#form.firstName# Last Name:#form.lastName# Email:#form.emailAddress# Company Name:#form.companyName# Phone Number:#form.phoneNumber# Address:#form.address# Apt:#form.apt# City:#form.city# State:#form.state# Zip Code:#zipCode# Comments:#form.message# </cfmail> <!---Display thank You Message---> <p>#application.config.contact.thankyou#</p> <p><a href="#application.url.webroot#">Return to home page/a></p> </cfif> <cfif showForm> <!----display the form----> <form action="#application.url.conjurer#? objectid=#application.navid.contact#" method="post" name="contact"> <table border="0" cellpadding="3" cellspacing="3"> <tr> <td colspan="2" align="left">To request information about management consulting assistance for your business, please include your business name and location. </td> </tr> <tr><td colspan="2"> </td> </tr> <tr> <td align="left">First Name</td> <td align="left"><input type="text" name="firstName" value="#form.firstName#"/> </td> </tr> <tr> <td align="left">Last Name</td> <td align="left"><input type="text" name="lastName" value="#form.lastName#"/> </td> </tr> <tr> <td align="left">Email</td> <td align="left"><input type="text" name="emailAddress" value="#form.emailAddress#"/> </td> </tr> <tr> <td align="left">Company Name</td> <td align="left"><input type="text" name="companyName" value="#form.companyName#"/> </td> </tr> <tr> <td align="left">Phone Number</td> <td align="left"><input type="text" name="phoneNumber" value="#form.phoneNumber#"/> </td> </tr> <tr> <td align="left">Address</td> <td align="left"><input type="text" name="Address" value="#form.address#"/> </td> </tr> <tr> <td align="left">Apt</td> <td align="left"><input type="text" name="Apt" value="#form.apt#"/> </td> </tr> <tr> <td align="left">City</td> <td align="left"><input type="text" name="city" value="#form.city#"/> </td> </tr> <tr> <td align="left">State</td> <td align="left"><input type="text" name="State" value="#form.state#"/> </td> </tr> <tr> <td align="left">Zip Code</td> <td align="left"><input type="text" name="zipCode" value="#form.zipCode#"/> </td> </tr> <tr> <td align="left" valign="top">Comments</td> <td align="left"><textarea name="message" rows="10" cols="35">#form.comments#</textarea></td></tr> <tr> <td> </td> <td align="left"><input type="submit" name="submit" value="Send Message" class="submit"/></td></tr></table> <!---Form Validation---> <SCRIPT LANGUAGE="Javascript"> <!--// objForm = new qForm("contact"); objForm.firstName.validateNotNull("Please enter your name"); objForm.emailAddress.validateNotNull("Please enter an email address"); objForm.emailAddress.validateEmail("Please Enter A Valid email address"); objForm.comments.validateNotNull("Please Enter a message"); //--> </script> </form></cfif></cfoutput> Here is my custom type code contact.cfm. <cfset stConfig=structNew()> <cfset stConfig.contactEmail="selfprodigy@..."> <cfset stConfig.thankyou="Thank you for taking the time to contact us. We will get back to you shortly"> The only thing i can figure is that i moved the include page to a different navigation mode but i set it up the same way... If you see anything that i'm missing please please please let me know. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "farcry-dev" group. To post to this group, send email to farcry-dev@... To unsubscribe from this group, send email to farcry-dev-unsubscribe@... For more options, visit this group at http://groups.google.com/group/farcry-dev?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Contact Form Help (code included)as a side note now when you click on the submit button it just go straight to the home page. It doesn't validate the fields, or send the email. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "farcry-dev" group. To post to this group, send email to farcry-dev@... To unsubscribe from this group, send email to farcry-dev-unsubscribe@... For more options, visit this group at http://groups.google.com/group/farcry-dev?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Contact Form Help (code included)On Apr 25, 7:45 am, Selfprodigy <selfprod...@...> wrote: > as a side note now when you click on the submit button it just go > straight to the home page. It doesn't validate the fields, or send > the email. Is this a new project? Have you considered looking at how this is done in FarCry 5.0? There is a feedback content type included in the generation of FarCry CMS that ships on FarCry 5.0. -- geoff http://www.daemon.com.au/ PS. we shipped a release candidate for 5.0 last night --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "farcry-dev" group. To post to this group, send email to farcry-dev@... To unsubscribe from this group, send email to farcry-dev-unsubscribe@... For more options, visit this group at http://groups.google.com/group/farcry-dev?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Contact Form Help (code included)Hmm interesting I would upgrade except this site is for a rather large company (100million plus per year) I'm a full time employee there, and i've been working on this for 3 weeks. I've been able to configure farcry to meet almost all the demands they need. At this point upgrading to a new system im totally unfamiliar with doesn't practical. The only thing i have left to do with this site is get the contact pages working, and setup a page for new employees to submit resumes. With this contact page best i can figure is for some reason it's bypassing custom contact.cfm page. At this point i dont care about the validation i can fix that later i just need it to email. On Apr 24, 4:58 pm, modius <mod...@...> wrote: > On Apr 25, 7:45 am, Selfprodigy <selfprod...@...> wrote: > > > as a side note now when you click on the submit button it just go > > straight to the home page. It doesn't validate the fields, or send > > the email. > > Is this a new project? Have you considered looking at how this is > done in FarCry 5.0? There is a feedback content type included in the > generation of FarCry CMS that ships on FarCry 5.0. > > -- geoffhttp://www.daemon.com.au/ > > PS. we shipped a release candidate for 5.0 last night You received this message because you are subscribed to the Google Groups "farcry-dev" group. To post to this group, send email to farcry-dev@... To unsubscribe from this group, send email to farcry-dev-unsubscribe@... For more options, visit this group at http://groups.google.com/group/farcry-dev?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Contact Form Help (code included)On Apr 25, 8:11 am, Selfprodigy <selfprod...@...> wrote: > I would upgrade except this site is for a rather large company > (100million plus per year) I'm a full time employee there, and i've > been working on this for 3 weeks. I've been able to configure farcry > to meet almost all the demands they need. At this point upgrading to a > new system im totally unfamiliar with doesn't practical. Well its pretty much the same as 4.0, but with a new security model and extra goodness :) The upgrade is push-button simple for vanilla sites. But heh, if you're stuck on 4.0 for the moment its not a bad platform. > With this contact page best i can figure is for some reason it's > bypassing custom contact.cfm page. At this point i dont care about > the validation i can fix that later i just need it to email. I don't know -- sounds like the form action. Perhaps just put nothing. In any event the way the contact us form sample is approached in the 5.0 release is something you can do in 4.0. You may even be able to copy the code without change. the _contact.cfm is pretty old school example that pre-dates the ease of formtools -- its still a valid approach. We just tend not to use "includes" for anything these days. Best regards, -- geoff http://www.daemon.com.au/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "farcry-dev" group. To post to this group, send email to farcry-dev@... To unsubscribe from this group, send email to farcry-dev-unsubscribe@... For more options, visit this group at http://groups.google.com/group/farcry-dev?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Contact Form Help (code included)I will look into it... Oh and thanks by the way i've fixed many problems reading your posts. We also purchased a full license for the jwplayer when the plugin came out. On Apr 24, 5:20 pm, modius <mod...@...> wrote: > On Apr 25, 8:11 am, Selfprodigy <selfprod...@...> wrote: > > > I would upgrade except this site is for a rather large company > > (100million plus per year) I'm a full time employee there, and i've > > been working on this for 3 weeks. I've been able to configure farcry > > to meet almost all the demands they need. At this point upgrading to a > > new system im totally unfamiliar with doesn't practical. > > Well its pretty much the same as 4.0, but with a new security model > and extra goodness :) The upgrade is push-button simple for vanilla > sites. But heh, if you're stuck on 4.0 for the moment its not a bad > platform. > > > With this contact page best i can figure is for some reason it's > > bypassing custom contact.cfm page. At this point i dont care about > > the validation i can fix that later i just need it to email. > > I don't know -- sounds like the form action. Perhaps just put > nothing. > > In any event the way the contact us form sample is approached in the > 5.0 release is something you can do in 4.0. You may even be able to > copy the code without change. the _contact.cfm is pretty old school > example that pre-dates the ease of formtools -- its still a valid > approach. We just tend not to use "includes" for anything these days. > > Best regards, > > -- geoffhttp://www.daemon.com.au/ You received this message because you are subscribed to the Google Groups "farcry-dev" group. To post to this group, send email to farcry-dev@... To unsubscribe from this group, send email to farcry-dev-unsubscribe@... For more options, visit this group at http://groups.google.com/group/farcry-dev?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Contact Form Help (code included)Overtly, everything looks correct to me... but a couple of suggestions... - I'm not sure if qForms still works with Farcry or not anymore. Instead, you might want to consider building your form with cfform and using the built in validation. - you might want to consider making a custom config for the items you are adding projectname/system/dmConfig/ this way you could call these items through the application.config scope instead of adding them as you have done. This also makes them easy to update through the Farcry admin. - Finally, where are you submitting the form to? (action). Since the actual page actually processes the form, you might want the action to be #cgi.script_name#?#cgi.query_string# This would 'self-submit'. good luck! elaine On Apr 24, 2008, at 3:42 PM, Selfprodigy wrote: > > Okay i had this working earlier today. I started to make updates, and > a few edits but, now it's not working right. In theory you fill out > your info it's sent to an email address, and it gives the thank you > for submitting message. Then there is supposed to be a link that takes > you back to the home page. This was all working fine until I added > more fields. Here is my includedobj code _contact.cfm > > <cfoutput> > <!----Default Values ----> > <cfset showForm=1> > <cfparam name="form.firstName" default=""> > <cfparam name="form.lastName" default=""> > <cfparam name="form.emailAddress" default=""> > <cfparam name="form.companyName" default=""> > <cfparam name="form.phoneNumber" default=""> > <cfparam name="form.address" default=""> > <cfparam name="form.apt" default=""> > <cfparam name="form.city" default=""> > <cfparam name="form.state" default=""> > <cfparam name="form.zipCode" default=""> > <cfparam name="form.comments" default=""> > <cfset error=""> > > <!----check if form has been submitted---> > <cfif isdefined("form.submit")> > <!---form has been submitted so we don't need to show the form---> > <cfset showform=0> > <!----Send Email----> > <cfmail to="#application.config.contact.contactEmail#" > from="#form.emailAddress#" subject="Website Contact Form"> > A message has been submitted from the website: > > First Name:#form.firstName# > Last Name:#form.lastName# > Email:#form.emailAddress# > Company Name:#form.companyName# > Phone Number:#form.phoneNumber# > Address:#form.address# > Apt:#form.apt# > City:#form.city# > State:#form.state# > Zip Code:#zipCode# > Comments:#form.message# > </cfmail> > > <!---Display thank You Message---> > <p>#application.config.contact.thankyou#</p> > <p><a href="#application.url.webroot#">Return to home page/a></p> > </cfif> > > <cfif showForm> > <!----display the form----> > <form action="#application.url.conjurer#? > objectid=#application.navid.contact#" method="post" name="contact"> > <table border="0" cellpadding="3" cellspacing="3"> > <tr> > <td colspan="2" align="left">To request information about > management consulting assistance for your business, please include > your business name and location. </td> > </tr> > <tr><td colspan="2"> </td> > </tr> > <tr> > <td align="left">First Name</td> > <td align="left"><input type="text" name="firstName" > value="#form.firstName#"/> > </td> > </tr> > <tr> > <td align="left">Last Name</td> > <td align="left"><input type="text" name="lastName" > value="#form.lastName#"/> > </td> > </tr> > <tr> > <td align="left">Email</td> > <td align="left"><input type="text" name="emailAddress" > value="#form.emailAddress#"/> > </td> > </tr> > <tr> > <td align="left">Company Name</td> > <td align="left"><input type="text" name="companyName" > value="#form.companyName#"/> > </td> > </tr> > <tr> > <td align="left">Phone Number</td> > <td align="left"><input type="text" name="phoneNumber" > value="#form.phoneNumber#"/> > </td> > </tr> > <tr> > <td align="left">Address</td> > <td align="left"><input type="text" name="Address" > value="#form.address#"/> > </td> > </tr> > <tr> > <td align="left">Apt</td> > <td align="left"><input type="text" name="Apt" > value="#form.apt#"/> > </td> > </tr> > <tr> > <td align="left">City</td> > <td align="left"><input type="text" name="city" > value="#form.city#"/> > </td> > </tr> > <tr> > <td align="left">State</td> > <td align="left"><input type="text" name="State" > value="#form.state#"/> > </td> > </tr> > <tr> > <td align="left">Zip Code</td> > <td align="left"><input type="text" name="zipCode" > value="#form.zipCode#"/> > </td> > </tr> > <tr> > <td align="left" valign="top">Comments</td> > <td align="left"><textarea name="message" rows="10" > cols="35">#form.comments#</textarea></td></tr> > <tr> > <td> </td> > <td align="left"><input type="submit" name="submit" > value="Send Message" class="submit"/></td></tr></table> > > <!---Form Validation---> > <SCRIPT LANGUAGE="Javascript"> > <!--// > objForm = new qForm("contact"); > objForm.firstName.validateNotNull("Please enter your name"); > objForm.emailAddress.validateNotNull("Please enter an email address"); > objForm.emailAddress.validateEmail("Please Enter A Valid email > address"); > objForm.comments.validateNotNull("Please Enter a message"); > //--> > </script> > </form></cfif></cfoutput> > > > > Here is my custom type code > > contact.cfm. > > <cfset stConfig=structNew()> > <cfset stConfig.contactEmail="selfprodigy@..."> > <cfset stConfig.thankyou="Thank you for taking the time to contact us. > We will get back to you shortly"> > > The only thing i can figure is that i moved the include page to a > different navigation mode but i set it up the same way... > > If you see anything that i'm missing please please please let me know. > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "farcry-dev" group. To post to this group, send email to farcry-dev@... To unsubscribe from this group, send email to farcry-dev-unsubscribe@... For more options, visit this group at http://groups.google.com/group/farcry-dev?hl=en -~----------~----~----~----~------~----~------~--~--- |
| Free Forum Powered by Nabble | Forum Help |