Well, the issue was with my function name not the form. I changed my function name when I couldn't even get alert('test') to work. It all appears to be working now.
-----Original Message----- From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Russell Keith Sent: Thursday, October 29, 2009 10:28 AM To: prototype-scriptaculous@googlegroups.com Subject: [Proto-Scripty] Re: Forms Then how is $F() any different than $()? Also, any idea why I can't get my form to submit. I have been all over Google and can't figure it out. -----Original Message----- From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Walter Lee Davis Sent: Thursday, October 29, 2009 10:24 AM To: prototype-scriptaculous@googlegroups.com Subject: [Proto-Scripty] Re: Forms Try giving your form elements IDs to match their NAME property. I have always needed the ID to be set in order to get a value out of $F. Walter On Oct 29, 2009, at 11:08 AM, Russell Keith wrote: > Ok, maybe I'm just being dense, but I am reading the API for forms > and I am getting nothing from it. > > What is proper use of the $F utility and what can it do for me? I > have read the Form.Element.getValue and it means nothing to me. > > I have this form: > > <form name="createPDF" action="/pdf/pdf_process.php" > method="POST"> > <input type="hidden" name="A_NAME" value="John" /> > <input type="hidden" name="APPLY_DATE" value="<?=date("m/d/Y")? > >" /> > <input type="hidden" name="A_BIRTH_DATE" value="01/01/01" /> > <input type="hidden" name="L_NAME" value="Jane" /> > <input type="hidden" name="L_BIRTH_DATE" value="01/01/01" /> > <input type="hidden" name="A_ACCOUNT" value="111111111" /> > </form> > > When I try to do alert($F('A_NAME')); I get an 'Object does not > support this property or method' error. I get the same error when I > try to submit the form with 'document.createPDF.submit();' is there > something wrong with my form? > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---