We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37812
    • 5 Posts
    Hello all,

    first off, i hope ive posted this in the right section, otherwise, I'm sorry and feel free to move it.

    Ok, on to Formbuilder smiley

    I created formbuilder as an internship project.
    Before I started with formbuilder I had no ModX experience what so ever.
    Formbuilder is made for webdevelopers who use ModX as a CMS, and who let their customers use it to maintain their website.
    With Formbuilder a webdeveloper does not have to manually create all the forms on a website, customers can just do it themselves through the manager.
    In other words: Formbuilder is a very easy to use module that lets users who have no experience with HTML or PHP what so ever, create forms.
    Webdevelopers in ModX don't have to create multiple forms with multiple FormIt calls anymore, Formbuilder can run multiple forms on 1 installation and 1 script.
    Formbuilder supports these HTML form elements:
    - Textfield.
    - Textarea.
    - Radiobuttons.
    - Special email textfield.
    - Limited checkboxes support.
    Formbuilder 1.0 is stable and ready for use, but there are still things that could be added.
    For instance: full checkboxes support, dropdown menu's etc. Please feel free to look into that, and also to provide me with feedback about Formbuilder!
    Formbuilder is based on the PHP script from Dagon Design: http://www.dagondesign.com/articles/secure-php-form-mailer-script/ and requires MIGX to work.
    Again this is my first development in Modx so please don't bite my head off smiley


    Formbuilder can be downloaded with the package browser, and works with the latest Modx.

    There are a few installation instructions so please make sure to read them:


    Installation:
    - Download the Formbuilder package through the package management of your modx site, or put the zip file in your /core/packages folder.
    - Run the installation of Formbuilder.
    This will create several chunks and template variables, also 1 template and 1 snippet.
    The template that is going to be created can be deleted if you want, the code that is in there reads whether or not the form is turned on. This code has to be in a template otherwise it won't work.
    - In the template variables find 'form_type' and 'form_required'. DO NOT FORGET THIS! VERY IMPORTANT!
    - Remove any template access these 2 template variables have.
    - Find the Formbuilder snippet.
    - In this snippet only edit 1 thing, find the line: define('DDFM_DOMAINEMAIL', 'email_here')
    - Where it says 'email_here' fill in the email adress that the autoresponse message will be send from. (example: [email protected])
    - You can style formbuilder using css. There is no css included!!
    - This means that the hidden anti-spam field (same as FormIt) is visible when no css is applied!!
    - Formbuilder is now ready for use in your Resources tree.


    **LANGUAGES
    The following languages are available:
    English, Belarussian, Brazilian Portuguese, Catalan, Czech, Danish, Dutch,
    Estonian, Finnish, French, German, Greek, Italian, Japanese, Norwegian Bokmaal,
    Polish, Portuguese, Romanian, Russian, Slovak, Slovene, Spanish, Swedish, Turkish,
    Vietnamese
    *Note this only changes error messages and text on buttons. Not the menu in the template variables tab.


    How to use:
    - In your resources tree, find a resource you want Formbuilder in. (most commonly a contact page)
    - Choose a template where you have added the code from the Formbuilder template.
    - When applied the tab: 'Template Variables' should appear. Click on it.
    - Fill in all the information in the menu and click "save".
    - Thats it! Your form should be visible on the website.

    So thats pritty much all there is to know, Formbuilder is stable and ready for daily use, but there is room for improvement, so anyone with time on their hands feel free.
    Also if you take a look at it, I'm really curious what you all think of it, so please report back with some feedback.


    Hope you will enjoy my plug-in as much as I have creating it.

    Thanks for reading!

    Thierry


    P.S. I have included some screenshots, they are in Dutch, but the plug-in is in English so no worries.
    Also the images are of an older version, have updated a bit since.






    [ed. note: thierryv last edited this post 14 years, 8 months ago.]
      • 37812
      • 5 Posts
      So Formbuilder has been up for a little week now, got a few downloads.

      Anybody here tried it? Very curious what you guys think smiley

      Greetings.
        • 18373 ☆ A M B ☆
        • 3,141 Posts
        So how does this work, basically a resource gets a form based on a number of TVs?
          Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

          Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
          • 37812
          • 5 Posts
          Well sort of, a resource gets a menu where an user can create any form he wants.
          His input then gets proccessed by a script which outputs the menu on the desired page.
            • 36851
            • 20 Posts
            Hi thierryv,

            I'm trying out your formbuilder addon. It looks good for simple forms like I need right now, but I get a php error:

            Warning: Division by zero in /home/svheatin/public_html/dev/core/cache/includes/elements/modsnippet/13.include.cache.php on line 60

            any idea why I get this error?

            grtz

            yannick
              • 11055 ☆ A M B ☆
              • 3,112 Posts
              Open the formbuilder snippet, change this line:

              $script_path = $modx->config['site_url']/assets/components/formbuilder/formbuilder.php;


              to

              $script_path = $modx->config['site_url'] . '/assets/components/formbuilder/formbuilder.php';
                Rico
                Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
                MODx is great, but knowing how to use it well makes it perfect!

                www.virtudraft.com

                Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

                Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

                Maintainter/contributor of Babel

                Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
                • 27330
                • 884 Posts
                doesn't work for me. I see this mod is a bit shy of 1000 downloads. anyone got it to work properly?
                  • 43514
                  • 1 Posts
                  I saw the same problem,
                  to set it to work you need to perform at least two steps, 1)do what said goldsky, and 2) reinstall MIGX, just like new addon, find MIGX, download and install, and then you will able to add buttons/forms successfully.

                  but i will try another form builder addons, because of specific needs.

                    • 36426
                    • 197 Posts
                    Hi I've installed Formbuilder and it works well, but for some reason when I fill out the form and press the 'Send Email' button I get a little browser loading time and then a blank page with no response message or thank you or confirmation email.

                    Can anyone please help check I have this set up right?

                    Thanks for any help.
                      Yorkshire UK based hosting provider: https://www.simulant.uk
                      • 47798
                      • 1 Posts
                      Do not work for me