Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Need to unlock all fields after submission for further edits

Avatar

Avatar
Level 1
chris_porter
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
chris_porter
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
chris_porter
Level 1

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
Validate 1
Level 2
mattiaswallin
Level 2

Likes

11 likes

Total Posts

51 posts

Correct Reply

8 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 2
mattiaswallin
Level 2

Likes

11 likes

Total Posts

51 posts

Correct Reply

8 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
mattiaswallin
Level 2

14-07-2016

That's great!

Have a good day you aswell

Avatar

Avatar
Level 1
chris_porter
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
chris_porter
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
chris_porter
Level 1

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
Validate 1
Level 2
mattiaswallin
Level 2

Likes

11 likes

Total Posts

51 posts

Correct Reply

8 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 2
mattiaswallin
Level 2

Likes

11 likes

Total Posts

51 posts

Correct Reply

8 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
mattiaswallin
Level 2

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.