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




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" is a partial form from 3 pages.

Thanks for Support or any idea.

Accepted Solutions (0)

Answers (2)

Answers (2)




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";