If you have an earlier version of FreeForm will there be any need to re-code forms?
Also, what are the changes in FreeForm 2.0 vs 1.6.
Finally, if anyone else has been wanting to do client-side JavaScript validation on FreeForm, I’ve been using the following script which gets the required variables from the hidden form field FreeForm uses (hopefully nothing changed too much in version 2 which would cause this to break):
<code>function validateEEForm(f) { var reqFields; var msg = ""; var inputFields = document.getElementById(f.id).getElementsByTagName("input"); for(var i=0;i<inputFields.length;i++) { if (inputFields.name == "ee_required") { reqFields = inputFields.value.split(","); break; } } for(var i=0;i<f.length;i++) { for(var x=0;x<reqFields.length;x++) { if (f.elements.name == reqFields[x] && f.elements.value == "") { msg = msg + " - " + f.elements.name + "\n"; } } } if (msg == "") { return true; } else { msg = "The following fields must be completed: \n" + msg; alert(msg); return false; } } function assignEEFormVal() { var forms = document.getElementsByTagName("form"); for (var i=0;i<forms.length;i++) { if (forms.id != "") { document.getElementById(forms.id) () {return validateEEForm(this)}; } } } window () {assignEEFormVal();}</code>
If it isn’t in version 2, it would be nice if something like this was a native part of FreeForm so that we don’t have to go server side for validation. (Now I’ll go make my $10 donation since I’m asking s o l s p a c e to do more work)
Hey Ya’ll!
Thanks for using Freeform.
Freeform 2.2 is now available and we’ve tried to test the sucker and work out the kinks. It now has documentation available at solspace.com/docs. 2.2 also has extension hooks built in which let you clown around with it a bit. I have written two extensions already, one which allows Freeform to add a submitted email address to one or more of your EE mailing lists and an other extension which allows you to add an onsubmit handler to Freeform.
Have fun!
solspace.com/software
mk
This is a great module. The one piece I have constantly struggled with EE that we have another CMS is that we have a module that allows us to fire off multiple emails. For emails.
User A fills out a form that they want to receive more information about product A. When User A clicks submit the CMS fires off two emails.
Email 1 - Email goes to multiple Admin people with information about the submission. Email 2 - Email goes to User A - this email is nicely formated with custom text (similar to templates in Freeform).
This is the problem I have continued to run into. If we could eventually find this functionality in EE we would move our entire site over (we are sitting on the fence right now).
Secondly, I noticed with FreeForm that I could capture information from my Weblog - unless I am totally missing how to do this. I have already tried to parse other EE tags within FreeForm and I have had no success.
Thank you for any advice on how to proceed.
Thank you for the input BJ. Many people have requested that we include the ability to have Freeform email the user of the form. I have a 2.3 release in mind that people are stacking feature requests onto. I’ll trya nd fold your in as well.
On the parsing, others have pointed out that Freeform’s parsing of tags is too aggressive. I’ll look into lessening that a bit.
mk
Do you have an idea when that would happen. I was thinking of developing a module just like this but had the ability to include the email the user (and I was thinking something similar to what you did with the template, but have a user and an admin template).
I could have one of my developers work on this project with you as we have a need for this due in September.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.