ruleForm

ruleForm

Developer

Blair McKenzie
shib71@gmail.com

  File Modified

ZIP Archive ruleForm.zip

May 18, 2006 by Blair McKenzie

This rule can create a form from any type in farcry, which when submitted creates a new instance in the type table. Includes entry field caption, server side validation and feedback (email,credit card number,integer,float,money,etc), changing the order of the fields, making them required, in/visible, and providing default values.

Currently filters out generic type properties and creates the type with empty, default or anonymous values for them. Could probably be cleaned up and there's a lot of room for expanding the validation and form input types, but it works quite well.

9 January 2006
Reworked a lot of the code. Hopefully, others will have less trouble with this rule now. Have added functionality for changing the success message, and for adding extra processing functionality.

19 May 2006

  • Arrays and uuids are now supported (in the sense that they are now specifically ignored (smile) )
  • Changing the order of fields is less of a chore
  • Two new types: money and regex
  • As before the label property isn't outputed as a field, but if the type has a title property then label will be set to the same value when the form is submitted.

When you add a webskin template to the type with the filename process*.cfm, the rule will provide that as an option for extra processing. Once the form data is successfully used to create a new object in the database the template specified in the "Processing" list box will be executed. If there is output, it will be inserted after the form heading, but this option is mainly for behind the scenes stuff like confirmation emails or setting up user accounts.