1. Create a Push Button
2. Right click on the Button -> Properties -> select Actions
4. Copy and paste the following code
for (var i = 0; i < this.numFields; i++)
5. Click OK to apply the changes to the button and the document.
NOTE: Fields will be set to read only but the document will need to be Saved in order to maintain the changes. If the document is not saved, the next time the document is opened the fields will return back to their original state.