Hi. I'm a newbie to Livecycle Designer and I've taken over a project from someone else no longer with my company. It is an insertion order form built in Lifecycle Designer that locks all fields after submission. I've been tasked to make this form unlockable for further edits. I've tried creating a button in the form that does this:
Submit button code:
myScriptObject.LockAllFields(InsertionOrder);
myScriptObject.UnlockAllFields(ButtonUnlockFields);
Unlock button code:
myScriptObject.UnlockAllFields(ButtonUnlockFields);
It doesn't seem to work. Any help would be much appreciated.
Views
Replies
Total Likes
Those lines of code simply refer to a separate script object that the person who created the form have created. If you look in your hierarchy tree, the you will find "myScriptObject" furthest down in the hierarchy (generally) under a category called Variables. This is simply a object that can be filled with functions governing your form.
It will be in that script object that any code to do any kind of locking actually exists.
For anyone to be able to see what has been done and why it doesn't work you need to supply that code.
Views
Replies
Total Likes
Thanks for the response, Mattias. Yep, it was referencing the myScriptObject variable which I eventually found further down the hierarchy and after some modification of the script I was able to resolve my issue in a more elegant manner.
Have a great day!
Views
Replies
Total Likes
That's great!
Have a good day you aswell
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies