Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Javascript for SubmitAs property.

Not applicable

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.




The problem is, how do I mention the submit as property to URL encoded Data and Data Encoding to UTF-8 in my code.
2 Replies
Level 10
Level 10
You can not write code on a submit 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:


this.access = "readOnly"