We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19636
    • 29 Posts
    I will look into this. Probably would be an easy switch. I also have been pondering this move.
      • 13144
      • 5 Posts
      Quote from: ministrycrm at Mar 09, 2010, 02:30 PM

      Thanks iSoma

      Answer to Question 1: I need to update the documentation. Initially I chunkified everything, but decided it was too chunky and stored these in the advanced form options for userability.

      That’s great, but always remember to update the manual wink


      Answer to Question 2: I found a bug in the javascript, well not a bug but extraneous code.
      Remove the following line from the Javascript:
      onSuccess	: function() { console.log('Success!'); },

      as edited: i got it working... just forgot to set the scope id in the fb_script


      I also removed:
      verify(); return false;

      great thx!


      I will clean up my sloppy code for the next version. I will probably leave in the div container or use a p tag to wrap form elements. (I don’t like using br tags for formatting).

      Something like this:
      <div class="field">
      <label for="lastname">last name : </label> 
      <input name="lastname" id="lastname" type="text" tabindex="1" />
      </div>
      
      -or-
      
      <p>
      <label for="lastname">last name : </label> 
      <input name="lastname" id="lastname" type="text" tabindex="1" />
      </p>
      


      OR maybe it would be best put in the advanced form options and let ya’ll decide?? Your thoughts...

      that would rock smiley


      I will try to knock out a new version this week yet.

      Thanks for your input. It is very much appreciated.


      rocks even more grin
        • 19636
        • 29 Posts
        I have a new version RC3 ready.

        This version:
        - removes extraneous code.
        - xhtml compliant

        Next version:
        -update validation to jquery form validation plugin: http://bassistance.de/jquery-plugins/jquery-plugin-validation/
          • 13144
          • 5 Posts
          Thanks for the new version. Just checking out. It seems better now. Though on radio inputs there seems to be a bug:

          <p>Nachricht</p><p><label for="type"></label> <input type="radio" name="type" id="type"  value="" tabindex="3" class=" radio req-both"/></p><p>Feedback</p><p><label for="type"></label> <input type="radio" name="type" id="type"  value="" tabindex="4" class=" radio req-both"/></p>


          [edit] Also I don’t seem to be able to set the default value of a radio, checkbox...

          I haven’t tested further yet...

          But What does the HTML before and after field do in the advanced options? When I enter something like <div> </div> the labels vanish...
            • 13144
            • 5 Posts
            Some suggestions:

            A killer feature would be to be able to set radio, checkboxes and lists the default selected item (selected="selected" or checked="checked"). - Something along that would be also be able to disable a field ( disabled="disabled"), but don’t know if that makes sense.

            That brings me to the next killer feature. Can you make it so, that whatever type is selected, the options change according to that type. for example a text type would not display the options field. etc.

            What about maxlength of a field?

            I’ve looked at the generated tables. Why is the collation set to "latin1_swedish_ci" and not "utf8_general_ci" like the database default? Would that somehow be possible to change via the module sql script?

              • 19636
              • 29 Posts
              I updated the readme.txt file.

              Special note on syntax:
              There are two special tags available <+for+> and <+label+>
              This allows custom formatting for those who don’t like the default format.

              Example:
              HTML before form field:
              <p><label for="<+for+>"><+label+></label>
              
              HTML after form field:
              </p>
              
              


              Your suggestions are good and wouldn’t be hard to implement. I will work on these suggestions for next release.
                • 19636
                • 29 Posts
                New Release Today RC4

                Added maxlength for text and textarea fields.
                -maxlength can be used to set the textarea cols and rows (example 28|10)

                Now able to set radio, checkboxes and lists the default selected item (selected="selected" or checked="checked")
                  • 36507
                  • 9 Posts
                  When I run the module I receive the following errors:

                  Warning: include_once(../assets/modules/formbuilder/inc/lang/english.inc.php) [function.include-once]: failed to open stream: No such file or directory in /home/user/public_html/manager/processors/execute_module.processor.php(114) : eval()’d code on line 32

                  Warning: include_once() [function.include]: Failed opening ’../assets/modules/formbuilder/inc/lang/english.inc.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php:/home/user/public_html/manager/includes/’) in /home/user/public_html/manager/processors/execute_module.processor.php(114) : eval()’d code on line 32

                  What would cause this? I triple checked the instructions, I triple checked the paths. I’m not familiar with modules either (this is my very first one) am I supposed to link the function.php as a dependency, so I link the snippets as well?

                  I am running rc4 and I noticed a call to function.php in your readme instructions you said to create a resource called functions.php with the letter S on the end. So I changed my resource to function.php to match the call from the module’s code (I think that’s how it works but I just learning php so I don’t know). Just as an FYI, it maybe unrelated I was just trying to figure out the problem on my own, but I’ve tried everything including deleting module and reinstalling.

                  I truly appreciate your efforts and I’m excited to get this working as it’s exactly what I need to allow users to create and tweak forms.

                  Again forgive me if the solution is obvious as I’m very much a Modx, php, mysql newbie (but I’m reading and learning)
                    • 36507
                    • 9 Posts
                    HA! Never mind I figured it out. My host doesn’t like php files and didn’t allow me to upload it through the Modx file manager. I manually uploaded it and it appears to be working now. Again thank you for your efforts. I will play around with it tonight. grin
                      • 19636
                      • 29 Posts
                      New Release scheduled for this week.

                      Includes jquery sortable fields

                      Bug fixes:
                      Hidden fields are now working
                      Cleaned up code
                      JSON bug fixed