The short answer is yes. All of the form tool functionality is encapsulated in tags. You can add the formtool tag library to an include or rule: <cfimport taglib="/farcry/core/tags/formtools/" prefix="ft" />
You can get more information about using the form tools' tags here<http://docs.farcrycms.org:8080/confluence/display/FCDEV40/Form+Tool+Usage>and here<http://docs.farcrycms.org:8080/confluence/display/FCDEV40/Form+Tool+Tag+Properties>on the wiki. The gist is: <!--- run enclosed code when this button is pressed, then save the type ---> <!--- just this tag by itself will handle validation and saving ---> <ft:processForm action="Submit button label"> <!--- use this tag to access the new values ---> <ft:processformobjects typename="yourType"> <cfif NOT len(stproperties.title)> <!--- break => don't save ---> <ft:break /> </cfif> </ft:processformobjects> </ft:processForm> <!--- put the enclosed code inside a form tools form ---> <ft:form> <!--- generate the edit form ---> <ft:object typename="yourType" lfields="list,of,fields,you,want,editable" format="edit" /> <!--- create a submit button ---> <ft:farcrybutton value="Submit button label" /> </ft:form> Hope this helps. Cheers Blair On 8/1/07, Scott Stroz <[EMAIL PROTECTED]> wrote: > > > I am working on a site where we will have a fair amount of custom > content types. > > Some of these content types will need input from visitors of the site, > such as registrations for events. > > What is the easiest/best way to handle this? > > Can I use form tools for this? > > Is there any way add additional functionality can be added to the > processing (such as firing off e-mails, etc) if form tools can be > used? > > Thanx in advance. > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "farcry-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/farcry-dev?hl=en -~----------~----~----~----~------~----~------~--~---
