You should be able to pass in a username default too. Alternatively you can pass in the stObject attribute to specify the values.
Blair On Fri, Apr 23, 2010 at 3:20 AM, Chris Roth <[email protected]> wrote: > I am trying to add functionality to the farLogin form > (displayLogin.cfm) (5.2.2) which I have extended to my plugins > folder. > > I am able to get a cookie set and have extended to form to include a > boolean check box. > > The cookie is set, but I cant seem to figure out how to "prepopulate" > the "username" field with the cookie value. > > I have this on.../ farLogin/displayLogin.cfm > > ... > > <cfif isDefined("cookie.bRememberMe")> > <cfset stMetadata = structnew() /> > <cfset stMetadata.username.default = > cookie.bRememberMe /> > <cfset stMetadata.bRememberMe.default = 1 /> > <cfelse> > <cfset stMetadata = structnew() /> > </cfif> > > <ft:object typename="farLogin" > lFields="username,password,bRememberMe" prefix="login" legend="" > stPropMetadata="#stMetadata#" /> > > ... > > > -- > 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
