It may be easier to create something of your own. Formtools do depend on
FarCry configuration in some places (e.g. the rich text editor), so they
can't really be used without a FarCry app running. I'm not sure it's worth
having FarCry occupying server resources just for formtools.

Blair

On Fri, Feb 26, 2010 at 9:53 AM, Jake Churchill <[email protected]> wrote:

> OK, thanks.  One more question.  This is the only thing this current
> project needs farcry for.  Do you think it is worth my time to use farcry
> for it or should I consider building a simpler version of formtools on my
> own?
>
>
> On Thu, Feb 25, 2010 at 4:50 PM, Blair McKenzie <[email protected]> wrote:
>
>> The basic input HTML and form validation can be done with edit() and
>> validate() on the formtool component. The surrounding HTML will need to be
>> added manually.
>>
>>
>> On Fri, Feb 26, 2010 at 9:47 AM, Jake Churchill <[email protected]>wrote:
>>
>>> Can I use formtools to create the forms dynamically like in the idlForm
>>> plugin:  idlForm 
>>> PDF<http://www.google.com/url?sa=t&source=web&ct=res&cd=3&ved=0CBEQFjAC&url=http%3A%2F%2Fdocs.farcrycms.org%2Fdownload%2Fattachments%2F1430%2Ftutorial-form-builder-plugin.pdf&ei=R_qGS8THGcaPtgeckLC0DQ&usg=AFQjCNFjEsey79zXmBuIQ-2-ZcyNgnIBjg&sig2=osCnB4QnmByRVVbwJPaaRA>
>>>
>>> Basically, I want to create forms dynamically and then use formtools to
>>> validate them.  I realize that I'll have to do a lot of the work manually,
>>> but will formtools allow me to do that?  Are there methods that would help
>>> me build the HTML and validate it?
>>>
>>> I'm not at a place where I can dig into the code right now so I'll do
>>> that, I'm just trying to get a little info before digging into the code to
>>> make sure I don't waste any time if formtools can't really help me like I
>>> want it to.
>>>
>>> Thanks!
>>>
>>> -Jake
>>>
>>>
>>>
>>> On Thu, Feb 25, 2010 at 3:07 PM, Blair McKenzie <[email protected]>wrote:
>>>
>>>> Unfortunately the ft:object tag won't help you here, as they're
>>>> basically there to help build on the COAPI types.
>>>>
>>>> But you can directly access the formtools at
>>>> application.formtools.xyz.oFactory.edit() and just build up the required
>>>> metadata structs manually. You will still need to add the HTML layout
>>>> structure yourself, e.g. the label's fieldset's.
>>>>
>>>> A couple of points:
>>>> - The formtool type and the validation types are added as classes to one
>>>> of those elements (I can't remember which one), which is the most
>>>> complicated that gets.
>>>> - Some formtools (like datetime) do server side processing in validate()
>>>> - mostly where there is more than one input that needs to be combined, but
>>>> also for stuff like file uploads.
>>>>
>>>> Hope that helps.
>>>>
>>>> Blair
>>>>
>>>> On Fri, Feb 26, 2010 at 6:58 AM, Jake Churchill <
>>>> [email protected]> wrote:
>>>>
>>>>> I'm looking for an example of formtools other than the standard object
>>>>> scaffolding COAPI examples that are out there.
>>>>>
>>>>> I want to build an interface or type that allows users to create their
>>>>> own forms and store their own data.  The simplest way I can explain it is
>>>>> they will create a new form, then they will create form fields that will 
>>>>> get
>>>>> attached to the form.  So, a contact form would be created and fields 
>>>>> might
>>>>> be name, email, phone, comment.  Since I don't know that up front I can't
>>>>> use the COAPI approach.  It'd be nice if I could but I don't see any way 
>>>>> to
>>>>> make that happen.  The closest thing I can find is that idlForm plugin 
>>>>> that
>>>>> was created back when Farcry 4 first came out but that doesn't do anything
>>>>> with saving data.
>>>>>
>>>>> Any help or pointers would be great.
>>>>>
>>>>> Thanks!
>>>>>
>>>>> -Jake Churchill
>>>>>
>>>>> --
>>>>> You received this message cos you are subscribed to "farcry-dev" Google
>>>>> group.
>>>>> To post, email: [email protected]
>>>>> To unsubscribe, email: 
>>>>> [email protected]<farcry-dev%[email protected]>
>>>>> For more options: http://groups.google.com/group/farcry-dev
>>>>> --------------------------------
>>>>> Follow us on Twitter: http://twitter.com/farcry
>>>>
>>>>
>>>>  --
>>>> You received this message cos you are subscribed to "farcry-dev" Google
>>>> group.
>>>> To post, email: [email protected]
>>>> To unsubscribe, email: 
>>>> [email protected]<farcry-dev%[email protected]>
>>>> For more options: http://groups.google.com/group/farcry-dev
>>>> --------------------------------
>>>> Follow us on Twitter: http://twitter.com/farcry
>>>
>>>
>>>  --
>>> You received this message cos you are subscribed to "farcry-dev" Google
>>> group.
>>> To post, email: [email protected]
>>> To unsubscribe, email: 
>>> [email protected]<farcry-dev%[email protected]>
>>> For more options: http://groups.google.com/group/farcry-dev
>>> --------------------------------
>>> Follow us on Twitter: http://twitter.com/farcry
>>>
>>
>>  --
>> You received this message cos you are subscribed to "farcry-dev" Google
>> group.
>> To post, email: [email protected]
>> To unsubscribe, email: 
>> [email protected]<farcry-dev%[email protected]>
>> For more options: http://groups.google.com/group/farcry-dev
>> --------------------------------
>> Follow us on Twitter: http://twitter.com/farcry
>>
>
>  --
> You received this message cos you are subscribed to "farcry-dev" Google
> group.
> To post, email: [email protected]
> To unsubscribe, email: 
> [email protected]<farcry-dev%[email protected]>
> For more options: http://groups.google.com/group/farcry-dev
> --------------------------------
> Follow us on Twitter: http://twitter.com/farcry
>

-- 
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry

Reply via email to