Expand my Community achievements bar.

Changing a fields type after validation

Avatar

Former Community Member
I am having an issue with trying to figure out how to change a fields type (i.e. User Entered - Required) after I validate a test sheet that the user filled out. It is basically an interactive answer sheet that grades itself when the user is finished answering the questions, I just need to know how to make that field read-only after the user has finished the test. Any ideas on how to go about doing this?



Thanks,

Ryan Crocker
5 Replies

Avatar

Former Community Member
How do you know when they are done? Do they click a button or something to indicate they are finished? If so, on the button click you would do something like:



Field.access = "readOnly";



Chris

Adobe Enterprise Developer Support

Avatar

Former Community Member
Yes, they click a button called GradeTest. Which then grades the test and alerts them of their score. How would I go about making the GradeTest button inactive also?



Thanks,

Ryan

Avatar

Former Community Member
Make the button read only as well:



GradeTest.access = "readOnly";



Chris

Adobe Enterprise Developer Support

Avatar

Former Community Member
When I'm ready to make the button available to the user, do I just change it to this?:



GradeTest.access = "write";

Avatar

Former Community Member
No, it would be



GradeTest.access = "open";



You can see the Object Model reference guide at: http://www.adobe.com/devnet/livecycle/articles/Adobe_XML_Form_Object_Model_Reference.pdf



Chris

Adobe Enterprise Developer Support