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

    Currently eForm does not use js to validate the forums. I think the use can add his/her own js codes to validate the input at the moment.

    IMO we should not rely on JS validation when submiting data to the server as JS functions can be easily overridden.

      xWisdom
      www.xwisdomhtml.com
      The fear of the Lord is the beginning of wisdom:
      MODx Co-Founder - Create and do more with less.
      • 32241
      • 1,495 Posts
      How about using prototype to allow validation with PHP, but it will use AJAX to do that. So if the client does not support js, it will degrade gracefully to postback. All we need is a best practive to use this. I know nothing about js, but I will try to give it a go. If you know how, would like to share it with us?

      Thanks
        Wendy Novianto
        [font=Verdana]PT DJAMOER Technology Media
        [font=Verdana]Xituz Media
        • 32963
        • 1,732 Posts
        Now that’s a cool idea. Using prototype should be very straight forward for most apps.
          xWisdom
          www.xwisdomhtml.com
          The fear of the Lord is the beginning of wisdom:
          MODx Co-Founder - Create and do more with less.
          • 4273
          • 356 Posts
          what would be great is a form builder that uses a grid to visually make the form anyway you want then convert it to a live form.
            SMF Bookmark Mod - check it out
            http://mods.simplemachines.org/index.php?mod=350
            • 7455
            • 2,204 Posts
            @Raymond: The installer needs to be adapted to create a folder called eform in the folder snippets.
              follow me on twitter: @dimmy01
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              It won’t be able to create the folder unless the "snippets" folder is world-writable (777), which is really not a good idea.
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 32963
                • 1,732 Posts
                Quote from: Dimmy at Jun 14, 2006, 01:47 AM

                @Raymond: The installer needs to be adapted to create a folder called eform in the folder snippets.

                Thanks Dimmy,

                I’ll correct this
                  xWisdom
                  www.xwisdomhtml.com
                  The fear of the Lord is the beginning of wisdom:
                  MODx Co-Founder - Create and do more with less.
                  • 7455
                  • 2,204 Posts
                  Quote from: sottwell at Jun 14, 2006, 01:48 AM

                  It won’t be able to create the folder unless the "snippets" folder is world-writable (777), which is really not a good idea.

                  ok then the snippet needs modification not to look in snippets/eform/ but look at snippets/ folder
                    follow me on twitter: @dimmy01