Javascript for SubmitAs property.

Avatar

08-01-2009

Hello



I have a PDF form with a Submit button property. the control type is "Submit" for this button and I have provided a URL and have set the property to "URL encoded Data(HTTP Post) and Data Encoding to UTF-8.



I am not able to write a Click event "this.access="readOnly" for this button to disable the button on Submit. So I decided to change the control type of the button to "Regular" to write the entire click event.



/*

event.target.submitForm({cURL:"http://localhost:8080/servlet-name/"})

this.access="readOnly";

*/



The problem is, how do I mention the submit as property to URL encoded Data and Data Encoding to UTF-8 in my code.

Replies

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

08-01-2009

You can not write code on a submit button.....so create your submit button as normal then make it invisible. Then create a new regular button (which you can code against) and then you can write the commands on the click event:



realsubmitbuttonname.execEvent("click");

this.access = "readOnly"