We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10525
    • 247 Posts
    I am about to embark on a fairly ambitious form (at least compared to anything else I've done with FormIt or eForm).

    Please tell me if this is do-able in FormIt or if I should just write this bespoke or if there are any other recommended form addons:

    1. This is an application form which would be around 3 A4 pages in length.
    2. Some of the fields will be required.
    3. Some of the fields will require content validation.
    4. Some of the dropdown fields will present options pulled from a database table.
    5. Some fields will be displayed (or particular values displayed) only if certain options are selected in previous fields (dependency).
    6. The form should be saveable at any point so that the user can return to it at a later time to complete and submit.
    7. The form may benefit from being presented in smaller sections, each saveable before the next is displayed.
    8. The submitted data will be emailed but should also be available to insert into a database if necessary.

    Any suggestions welcome.

      • 36996
      • 211 Posts
      You can use formit for that.
      for saving the form between pages you can use http://rtfm.modx.com/extras/revo/formit/formit.formitretriever
      You can insert data to the DB using http://rtfm.modx.com/extras/revo/formit2db

      for 5 and 7, you will probably need javascript, though there are a few ways you can do that.

      Hope this can get you started, good luck.
      • Plus FormIt has the option of custom "hooks" that are basically just snippets that you can have do anything you want, from pre-loading fields from the database to custom validation rules for some fields.
          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
          • 10525
          • 247 Posts
          Thanks for your suggestions folks, but I think I'll just do this in pure PHP. It can take so much time to learn the idiosyncrasies of addons (which are basically just abstractions of php anyway), only to discover they don't do what you want..