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.


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 &" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to