Hi all,

I am trying to change a hidden value in a form before the form is posted. Here's a 
slice of code that I'm using. 

                my $apclick = $form->find_input('click');
                my $apsearch = $form->find_input($search);
                my $aptitle = $form->find_input($title);
                my $apdesc = $form->find_input($desc);
                my $apurl = $form->find_input($url);
                        
                $form->value( $apclick, 'true');                        # this line 
returns error
                $form->value( $apsearch, $u_term );
                $form->value( $aptitle, $u_title );
                $form->value( $apdesc, $u_desc );
                $form->value( $apurl, $u_url );
                $form->value( $apbid, $u_bid );

The code works for setting the values on the other fields but bombs when trying to set 
the value of the hidden field. The error message returned is:

No such field 'HTML::Form::TextInput=HASH(0x85d5f04)' at ./so.pl line 378

Is there anything special I need to do to change the value of a hidden field?

================

The reason I'm asking is because I'm populating a form and then calling ->click and 
getting a response of is_succes is true. If I manually try to enter the same data in 
the form when I click on the submit button I get a javascript alert that after 
clicking OK sets the hidden value of the form to 'true' so that when I click the 
submit button again I don't get the alert.

Since I don't think I can change hidden form values how do I get around this annoying 
javascript alert? Any suggestions would be greatly appreciated.

Thanks so much,

Guy Davis


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to