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

No reset from instances if turn from "on" to "off" and "on" again

Avatar

Avatar
Level 1
Philipp_Abendro
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
Philipp_Abendro
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
Philipp_Abendro
Level 1

27-01-2017

Hello,

i have build a dynamic pdf file with some "hidden" pages.

The pdf had one title page and the other pages are hidden and only visible if the user click to a checkbock at the title page.

now my Problem, if a user would set some pages to visible and fill out the textfield or so and hide this pageset again, all entrys are deletet (if visible again).

is it possible to Change this Setting from livecycle designer, or did a make something wrong.

my script:

(this.rawValue == "1"){ 

_autostore.setInstances(1)

else{ 

_autostore.setInstances(0)

} 

"AutoStore" is a partial form from 3 pages.

Thanks for Support or any idea.

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar
Level 1
Philipp_Abendro
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
Philipp_Abendro
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
Philipp_Abendro
Level 1

10-07-2017

Hi,

thnaks for Reply, this would work, if i set the complete page to "hidden" and with this script to vissible. 🙂

greetings

Philipp

Avatar

Avatar
Coach
MVP
radzmar
MVP

Likes

394 likes

Total Posts

2,684 posts

Correct Reply

489 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile

Avatar
Coach
MVP
radzmar
MVP

Likes

394 likes

Total Posts

2,684 posts

Correct Reply

489 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile
radzmar
MVP

31-01-2017

The setInstances() method adds or removes elements to the form DOM and also the data DOM. So, once deleted the entered data is lost and a newly added instance will be populated with the default values.

To keep the data use another way to controll the visibility, like the presence property:

if ((this.rawValue == "1") { 

    autostore.presence = "visible";

} else{ 

    autostore.presence = "hidden";

}