Copy link to clipboard
Copied
I have a field called "MileageRate". I would like that field to toggle between read-only and "read-write" when clicking a button. This way, each year that the mileage rate changes I can just enter the new rate, then make read-only again without having to actually use the "prepare form" functionality of acrobat to make that change. Is there a javascript I can use for that? I don't have any sample to enter here because I don't know how to write javascript... but I've become quite talented at copying and pasting .
Any help is appreciated, thanks!
Ariel
The Mouse Up script for a button could be:
// Get a reference to the text field
var f = getField("Text1");
// Toggle the read-only property
f.readonly = !f.readonly;
Replace "Text1" with the actual name of the text field.
Copy link to clipboard
Copied
The Mouse Up script for a button could be:
// Get a reference to the text field
var f = getField("Text1");
// Toggle the read-only property
f.readonly = !f.readonly;
Replace "Text1" with the actual name of the text field.
Copy link to clipboard
Copied
Worked perfectly, thank you!!!