Hello,
Background: I have a process created within LiveCycle Workbench that assigns a form to a user through the AssignUser service. The form (task) appears in the user's 'To-Do' queue. The process in workbench has three routes, appear as options to the user at the bottom of the form.
Request: I am looking for a solution that will manipulate object properties within my form based on the route a user chooses in WorkSpace. Specifically, my form has a few fields in it that are 'User Entered - Required'; this means that these fields must be filled out prior to the user choosing one of the routes in WorkSpace. I would like a means to change the properties of these fields to 'User Entered - Optional', if a specific route is selected. I would assume this could be done through scripting. One caveat, I need this solution to work without calling out specific fields on the form. I am hoping there is a global property that can be set through scripting to change all fields to 'User Entered - Optional'.
Specific Use Case:
Here's the specific use case that I need this form. A user is presented with three options for each form in their To-Do queue. One of these options is 'Delete from Queue'. We would like the user to select this option without having to fill out the required fields in the form. Our client has ~400 destinct forms, so it would be a nightmare if each form had a specific scirpting solution that said change the properties of this particular field to 'User Entered - Optional'. Rather I am looking for a solution that would change the properties of all fields that have 'User Entered - Required' to 'User Entered - Optional' regardless of the field's name.
I realize this request is rather complex and difficult to understand. If you have any questions around this request please feel free to post back. I appreciate any help on this task. Thanks.
But, "User Entered - Required" is really two properties, "field.access" and "field.mandatory". It's no problem to use a script to walk through all the fields on the form filtering based on these properties. To modify the field to "User Entered - Optional", change the "field.mandatory" property to "disabled".
For writing these scripts you'll need the "AdobeĀ® XML Form Object Model Reference". You can download this from:
http://partners.adobe.com/public/developer/xml/topic.php
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]
Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script