Ok, I have figured out that i can create my own custom form tools
types and put whatever html i want in the edit method of that
component. The problem i am getting now is that the edit method in my
custom form tool type doesn't seem to be getting called. I have tried
updating the app several times with no luck. Is this a known bug? Here
is my custom form tool type.

<cfcomponent extends="farcry.core.packages.formtools.field"
name="postcode" displayname="postcode" hint="Used to liase with
webskin type fields">

        <cffunction name="init" access="public"
returntype="farcry.plugins.farcry_vanillaCheckout.packages.formtools.postcode"
output="false" hint="Returns a copy of this initialised object">
                <cfreturn this>
        </cffunction>

        <cffunction name="edit" access="public" output="true"
returntype="string" hint="this will return a string of formatted HTML
to enable the user to call a post code finder and populate the
required address fields">
                <cfargument name="typename" required="true" type="string" 
hint="The
name of the type that this field is part of.">
                <cfargument name="stObject" required="true" type="struct" 
hint="The
object of the record that this field is part of.">
                <cfargument name="stMetadata" required="true" type="struct"
hint="This is the metadata that is either setup as part of the
type.cfc or overridden when calling ft:object by using the stMetadata
argument.">
                <cfargument name="fieldname" required="true" type="string"
hint="This is the name that will be used for the form field. It
includes the prefix that will be used by ft:processform.">

                <cfsavecontent variable="html">
                        This is a test
                </cfsavecontent>

                <cfreturn html>
        </cffunction>

</cfcomponent>

Thanks again for any help
Cheers
Gav


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to