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

Keeping Fields Open While Saving/Printing as a PDF

Avatar

Avatar
Validate 1
Level 1
jrvh924
Level 1

Likes

0 likes

Total Posts

40 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
jrvh924
Level 1

Likes

0 likes

Total Posts

40 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
jrvh924
Level 1

13-05-2016

Hello.  What I am trying to do is create a form in LiveCycle ES2 where either one user can fill in their ideas, print as a PDF or save it and lock their fields so nothing else can be added, and then the next person can add their thoughts in another field, etc. but I have not found a way to do so without all fields being printed and no longer visible or be changed. 

Another example of this would be is emailing a price quote to a potential customer and also having a copy of our service order agreement below.  Printing would only lock the price quote, but keep the the service order agreement active below to be filled in.


Any help would be appreciated as I am at a loss and have no idea if this is even possible.


Thank you in advance!


Justin

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 4
MinusZero
Level 4

Likes

30 likes

Total Posts

326 posts

Correct Reply

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

Avatar
Validate 1
Level 4
MinusZero
Level 4

Likes

30 likes

Total Posts

326 posts

Correct Reply

54 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
MinusZero
Level 4

17-05-2016

What you will need to do is add code to the form's PreSave and PrePrint events.

If you add this, it will lock the field:

this.resolveNode("textFieldName").access = "readOnly";

Change 'readOnly' for 'open' to unlock the fields (you could add that to a button to unlock the fields if required). You could even add a password to it.

Tip: if you use 'readOnly', the tabs for the fields will still be active. Using 'protected' will skip the fields if tab is pressed when using the form.