We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

FreeForm 2.0

Development and Programming

Solspace's avatar
Solspace
106 posts
19 years ago
Solspace's avatar Solspace

Hey Everybody,

Thanks for using Freeform 2.0. Thanks for catching those bugs. I’ll have a new version with fixes for those by Monday I hope.

Take care.

mk

       
Scheffey's avatar
Scheffey
24 posts
19 years ago
Scheffey's avatar Scheffey

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)

       
Solspace's avatar
Solspace
106 posts
19 years ago
Solspace's avatar Solspace

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

       
EE lover's avatar
EE lover
50 posts
19 years ago
EE lover's avatar EE lover

Thanks Mitchell,

FreeForm is becoming a must. Also congrats on your new docs section. =)

       
Solspace's avatar
Solspace
106 posts
19 years ago
Solspace's avatar Solspace

Thanks EE Lover!

       
bjsteiger's avatar
bjsteiger
87 posts
19 years ago
bjsteiger's avatar bjsteiger

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.

       
Solspace's avatar
Solspace
106 posts
19 years ago
Solspace's avatar Solspace

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

       
bjsteiger's avatar
bjsteiger
87 posts
19 years ago
bjsteiger's avatar bjsteiger

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.

       
Solspace's avatar
Solspace
106 posts
19 years ago
Solspace's avatar Solspace

I hope to release by end of this week.

mk

       
bjsteiger's avatar
bjsteiger
87 posts
19 years ago
bjsteiger's avatar bjsteiger

Hey! Thank you for such a great module. So I take it the new realease will allow for EE tags and also allow for an email to the admin and a confirmation email.

       
Solspace's avatar
Solspace
106 posts
19 years ago
Solspace's avatar Solspace

Right you are!

Note that the EE tag issue is a bit tricky. For best results you will want to use this tag {embed="whatever"} to bring content into the form.

mk

       
Sue Crocker's avatar
Sue Crocker
26,054 posts
19 years ago
Sue Crocker's avatar Sue Crocker

Mitchell,

For best results you will want to use this tag {embed="whatever"} to bring content into the form

That’s such an improvement. Now I can embed my country and states lists for multiple forms. Thanks again.

       
bjsteiger's avatar
bjsteiger
87 posts
19 years ago
bjsteiger's avatar bjsteiger

Could you technically build the form and include the entire form in {embed="whatever"} and surround this with freeform?

       
Sue Crocker's avatar
Sue Crocker
26,054 posts
19 years ago
Sue Crocker's avatar Sue Crocker

In theory. 😊 The ability to add embeds is recent, I wasn’t able to use it in earlier versions.

       
Solspace's avatar
Solspace
106 posts
19 years ago
Solspace's avatar Solspace

I like to embed both the form fields and EE entries wrapped inside Freeform. This lets me create registration forms where the items to be registered for are blog entries.

       
1 2 3

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.