The fields are a mix of drop downs and input boxes.
For # 2, does that mean I need to remove the "ftWizardStep" attribute
from my <cfproperty> tags since I'd be using this custom edit.cfm file
for my form? Currently, my form just renders because of the metadata
defined in each <cfproperty> tag i believe.
As of now, the only code I have for my form is:
<ft:objectAdmin
title="Employee Listings"
typename="employee"
module="customlists/employee.cfm"
/>
There is an "Add" button and I click that and my form just renders
magically. I'm used to writing all the <form> tags and input fields,
etc, this seems to all just happen as part of the FarCry framework.
I've never used the <ft:form> <ft:processform>
<ft:processFormObjects> <ft:object> and <ft:wizard> tags before.
Do these tags allow more granular control of a form? If so, I think I
need that because right now, I'm really just controlling things from
within the content type.
-West
On Mar 7, 7:12 pm, Tomek kott <[email protected]> wrote:
> Ahh, right. Then you have two choices:
>
> 1) If all the fields that need to be shown depending on a previous
> step are all drop downs or libraries (arrays / uuid) then what you can
> do is define the method to call in for example ftListData (https://
> farcry.jira.com/wiki/display/FCDEV40/list). Using the uuid passed to
> the function, you can search for the temporary object, extract the
> data as necessary, etc.
>
> 2) Do what Sean is suggesting and create an edit.cfm template in the
> content type. So if you have dmCustom as the content type, you would
> need /projects/YYY/webskin/dmCustom/edit.cfm.
>
> There, define and process the form using <ft:form> <ft:processform>
> <ft:processFormObjects> <ft:object> and <ft:wizard>. You should be
> able to find tag parameters here:http://docs.farcrycore.org/
>
> #2 is probably what you'll have to do.
>
> Tomek
>
> On Mar 7, 9:57 pm, West <[email protected]> wrote:
>
> > Hi Tomek,
>
> > That sounds like what I want to do, but I'm unsure on how I can
> > "output the form". I can get the value that the user chose from the
> > drop down menu from the temporary object store, but I'm unsure how to
> > control which fields display on the form based on this.
>
> > In my content type, I define which the ftWizardSteps but that's the
> > only way I know how to get get the form fields appear.
>
> > Any help definitely appreciated.
>
> > On Mar 7, 1:13 pm, Tomek kott <[email protected]> wrote:
>
> > > if you're using the wizard interface/tags, you should be able to get
> > > access to the temporary object store from the form, figure out the
> > > current value of the field "color" and output the form from there. If
> > > you're not using the wizard tags with a specific object in mind... you
> > > should :)
>
> > > Tomek
>
> > > On Mar 7, 8:49 am, Sean Coyne <[email protected]> wrote:
>
> > > > You have to write your own edit.cfm webskin for your content type to do
> > > > this.
--
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