House of Fusion
Home of the ColdFusion Community

Search cf-talk

December 02, 2008

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
   1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31       

Search over 2,500 ColdFusion resources here  >>>      
Home /  Groups /  ColdFusion Talk (CF-Talk)

form collection

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Chad Gray
09/05/2008 02:25 PM

Hello, I am using argumentCollection=form to dump all of the form fields into a CFC.  I would like to add to the form collection one more variable called Alias. I tried this but the variable FORM.Alias does not appear to actually be in the collection. <cfset FORM.Alias = application.page.makeAlias(form.Name)> <cfset application.page.savePage(argumentCollection=form) /> How do I append one more form field to the collection?

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Charlie Griefer
09/05/2008 02:38 PM

----- Excess quoted text cut - see Original Post for more ----- why not just use a hidden form field in the form itself? <input type="hidden" name="alias" value="..." /> ? -- I have failed as much as I have succeeded. But I love my life. I love my wife. And I wish you my kind of success.

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Chad Gray
09/05/2008 02:42 PM

I need to take what they type into the form "Name" field and remove illegal characters and then that becomes the "Alias" variable I need to insert into the database. I suppose I could run my MakeAlias function inside of the savePage function. I will give that a try. ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Chad Gray
09/05/2008 02:47 PM

Hmm never mind.  I had an error in my code that made me think Alias was not being added to the collection. It appears to work now that I found my real bug. Chad ----- Excess quoted text cut - see Original Post for more -----


<< Previous Thread Today's Threads Next Thread >>

Mailing Lists