Highlighted

Print only checked

Avatar

25-08-2008

Is there a way to set a group of checkboxes up so that it will only print the selected ones?

Replies

Highlighted

Avatar

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692
pguerett

25-08-2008

Not without writing script. You would have to change the presence property of the checkbox initially to be on screen only (-print) and then when the user clicks the checkbox check to see that it has been checked and change the presence to +print.
Highlighted

Avatar

25-08-2008

that makes sense. what is the event for checking a checkbox called. would that be the initialize event?
Highlighted

Avatar

25-08-2008

I scripted this code and put it under the prePrint event in the show scripts list. It will only print when checked now, but it leaves the screen after that event occurs. Any ideas?



if(checkbox1.rawValue == 0){

checkbox1.relevant="-print";

}

else{checkbox1.relevant="+print";

}
Highlighted

Avatar

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692
pguerett

26-08-2008

You can set the presence back to visible in the postprint event.
Highlighted

Avatar

26-08-2008

excellent. it works. thanks. Any ideas on why when i have more than one page, and i hide the subforms on thefirst page, the sub forms on second page don't move to the first to shrink the size of the form? or ideas on how to do that?
Highlighted

Avatar

27-08-2008

Hi Brian,

You have to use flowed layout on the top of your first and second form, so when you make first form hidden, second will be go up.

Hope helps,

In case of more support, you can email me.



asiyegunaydin@kgc.com.tr



Asiye