Hello - I'm currently using LiveCycle Designer to create some new forms and I was looking for an option to have certain fields become read only (vs. required)based on the selection of a radio button. For example, a 'yes' or 'no' radio button and if yes is selected, they would have 3 required fields below that, if no, then those fields would still be present on the forms, but the user wouldn't be able to populate them.
**MouseUp for "ReadOnly" radio button
DecimalField1.access = "readOnly";
**MouseUp for "Edit" radio button
DecimalField1.access = "open";
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script