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

    I’ve added a button to clear entries from the database. I’m not sure where the action should redirect to though? Right now it just prints a confirmation.

    Here is the modified formbuilder module code

    Added lines are 19-28 and 190-195.

    Hope this helps someone!

    Tharon
      • 14405
      • 1 Posts
      Joe, this is indeed a great module! Thanks! I wanted to share, and ask a couple things that might help:

      1) The readme file has "abd" instead of "and" between <+for+> and <+label+>.
      2) The stop image in the "Close FormBuilder" button isn’t showing up because there’s a slash missing after the "style" folder name and the code is not resolving [+theme+] so it might need to be changed to something like this:
      ...<img src="media/style/' . $theme . '/images/icons/stop.png">...
      

      3. It would be cool to default the csv name to the name of the form since with many forms, and extracts, right now they all default to the same name, how about adding this the download code?
      $formid = $_REQUEST[fid];
      $getformdata = $modx->db->select("formname", 'formbuilder_names', "`id` = '$formid'");
      $form = $modx->db->getRow($getformdata);
      $safename = preg_replace("/[^\w\.-]/", "-", strtolower($form[formname]));
      header("Content-type: application/csv");
      header('Content-Disposition: attachment; filename="'. $safename .'.csv"'); 
      

      4. What do you think about prefixing the snippets with fb_ like you do the chunks so there’s less chance of name collision with other existing snippets?
      5. Does "waiting for update" mean it’s coming in a later release?

        • 25342
        • 13 Posts
        Hi am new to modx and not a developer but tried out this module

        I cannot get it working.

        When i check the php files i get

        process_sortable.php
        « MODx Parse Error »
        MODx encountered the following error while attempting to parse the requested resource:
        « PHP Parse Error »

        PHP error debug
        Error: array_keys() [function.array-keys]: The first argument should be an array
        Error type/ Nr.: Warning - 2
        File: /opt/webs/mywebsite.com/manager/includes/document.parser.class.inc.php(769) : eval()’d code
        Line: 3

        Parser timing
        MySQL: 0.0057 s (4 Requests)
        PHP: 0.0259 s
        Total: 0.0315 s

        and
        function.php

        Parse error: syntax error, unexpected T_GLOBAL, expecting ’{’ in /opt/webs/mywebsite.com/manager/includes/document.parser.class.inc.php(769) : eval()’d code on line 3

        Urgent help would be much appreciated
          • 25342
          • 13 Posts
          Quote from: RoccoD at May 26, 2010, 11:26 PM

          Hi am new to modx and not a developer but tried out this module

          I cannot get it working.

          When i check the php files i get

          process_sortable.php
          « MODx Parse Error »
          MODx encountered the following error while attempting to parse the requested resource:
          « PHP Parse Error »

          PHP error debug
          Error: array_keys() [function.array-keys]: The first argument should be an array
          Error type/ Nr.: Warning - 2
          File: /opt/webs/mywebsite.com/manager/includes/document.parser.class.inc.php(769) : eval()’d code
          Line: 3

          Parser timing
          MySQL: 0.0057 s (4 Requests)
          PHP: 0.0259 s
          Total: 0.0315 s

          and
          function.php

          Parse error: syntax error, unexpected T_GLOBAL, expecting ’{’ in /opt/webs/mywebsite.com/manager/includes/document.parser.class.inc.php(769) : eval()’d code on line 3

          Urgent help would be much appreciated

          Anyone? Is there another support area to direct my question if not?
            • 9585
            • 50 Posts
            This is a great module but I’ve got one small issue with it. Does anyone know how to increase the limit on the amount of characters when you create a ’fieldset start’..when you choose this it makes a legend tag which seems to be limited to around 30 characters.

            Thanks
              • 25342
              • 13 Posts
              Ok i worked out my issue, have to upload .php direct to server.

              EASY QUESTION, but i am a newb. How do i get a submission page to dispaly after form submission. Its dynamic and just shows the thankyou message?

              Thanks in advance.
                • 25022
                • 1 Posts
                Hi,

                I would like to download formbuilder, but it seems to have been taken off the extras site?
                Can anyone send me a working link?

                Thank you
                Rich
                  • 19368
                  • 40 Posts
                  Hey there,

                  I have managed to get the module working and have made a test form

                  I have a page set up calling [!displayform? &formid=`1` &javascript=`fb_javascript` !]

                  ...yes...the form ID is right.

                  But I get this:

                  Parse error: syntax error, unexpected T_GLOBAL, expecting ’{’ in /home/somewhere/public_html/manager/includes/document.parser.class.inc.php(770) : eval()’d code on line 2

                  Any ideas?
                    • 6865
                    • 1 Posts
                    Following up on fenderboy’s thread - is there any way to increase the number of characters in a label, or insert a block of text between fields? I’m trying to implement a disclaimer/release with a checkbox for users to signify they’ve read/agreed to the terms.
                      • 19368
                      • 40 Posts
                      the lack of replies in this "forum" does not inspire confidence in the plugin.