Module want: form builder
#41
Posted 07 December 2011 - 04:23 PM
#43
Posted 07 December 2011 - 05:08 PM
Not saying this will help, but it might.
#44
Posted 08 December 2011 - 09:22 AM
#45
Posted 18 December 2011 - 06:57 AM
I noticed that if you re-use fields and don't fill the name out on the Contact form, it displays the errors on BOTH forms. I then changed the fields so they each had their own fields, and then when you submit an empty contact form it correctly displays the errors for the contact form, but the other form is replaced by the "Thanks you, your submission has been sent" message.
So... there are some issues with multiple forms on the same page
#46
Posted 19 December 2011 - 11:00 AM
#47
Posted 29 December 2011 - 05:27 AM
If you've got two forms on the same page, then they are both going to be detect that submit.
Aren't browser sending only data from form, which has the pressed submit in it? Meaning, if I have form1 with submit1 and form2 with submit2, on submit1 it sends only fields/data from form1 and on submit2 only data from form2?
#48
Posted 29 December 2011 - 01:28 PM
#49
Posted 22 February 2012 - 12:28 PM
That's correct, and that would be the simple fix in this case.
But because this particular module isn't singular (i.e. a new instance is created whenever you load the module) it would have to keep track of how many instances of it are running (via a static variable in the class).
Just saw this and tho i know it's a big deal, my friend and i recently did this on a multiple form page, with potentially the same 'instances' of the form and we incorporated a sorta 'nonce/hash' based on the instance of the 'form' itself. works DANDY too!
it's not a biggie but could be an easy add. (course, i say easy but you get me)
in that way you could also do ajax submits as well.
just sayin'.
#50
Posted 22 February 2012 - 02:33 PM
#51
Posted 23 February 2012 - 10:29 AM
****
I install and read the help files for the "form builder module"
but i'm still a bit confused :
* // help file Usage:
*
* 1. In admin, create the fields you want to be part of the form.
OK
* 2. Create a new template and assign your fields to this template.
OK but do i need evey other fields ?- i would say yes..
So that would be a normal template like basic pages + new fields for the form..
* 3. Create another template for your contact form page (if you don't already have one).
That's confusing..
A new template again ? then it's written (if you don't already have one)
How many do I need then !!? ;-)
* 4. Use the example below as a starting point for this contact form page:
(ok thanks Ryan as usual)
Cause i just want an easy way to make contact forms at the end..
with just some different kind of fields depending of the website..
A walkthrought/tutorial would really be great ****
or at least to explicit the number 2 and 3.
Regards,
#52
Posted 24 February 2012 - 01:14 PM
basic-form.php.txt 1.98K
242 downloadsNote that you'll have to rename this to basic-form.php, place in /site/templates/. If you want it to email to a specific address (rather than the superuser) than edit the file and enter your email address in at the top where it says to.
#53
Posted 26 February 2012 - 01:52 PM
I'll might try to mix it with the code from the "form builder" because i like the way that email are checked..
Hum.. what about Captcha ? Any thought of that matter ?
Regards,
M.
P.S : Have a really great day !
#54
Posted 27 February 2012 - 10:53 AM
<textarea id='my_message' name='my_message'></textarea>
Then have your CSS stylesheet hide it:
#my_message { display: none; }Then on your form processing, add this check:
if($input->post->my_message) {
// message is very likely spam so skip or send it to your spambox
mail('your.spam.email@company.com', $subject, $message);
} else {
// message is good
mail('your.email@company.com', $subject, $message);
}
Other captcha solutions would be to add a "What is 5+4?" and verify that they entered 9 (using a method like above). Or add in a captcha service like Recaptcha.
#55
Posted 27 February 2012 - 03:40 PM
There was something very satisfying about changing the question just after they'd worked out the last one - I know it's probably all automated but I like to think I've frustrated a human spammer nonetheless
#57
Posted 28 February 2012 - 01:19 AM
Or add in a captcha service like Recaptcha.
ReCaptcha is pretty damn hard to get right for a half human like me
#58
Posted 28 February 2012 - 03:22 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users












