Need to unlock all fields after submission for further edits

Avatar

Avatar

chris_porter

Avatar

chris_porter

chris_porter

12-07-2016

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

Avatar

Avatar

mattiaswallin

Avatar

mattiaswallin

mattiaswallin

14-07-2016

That's great!

Have a good day you aswell

Avatar

Avatar

chris_porter

Avatar

chris_porter

chris_porter

14-07-2016

     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!

Avatar

Avatar

mattiaswallin

Avatar

mattiaswallin

mattiaswallin

13-07-2016

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.