- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hi guys
I'm attempting to control whether or not a checkbox object is displayed when printed, based on whether or not the box is checked.
I only want the checkbox object to be printed if the checkbox is checked. It should be visible to the user regardless.
I have created a simple script that I believe should do the job, but the checkbox object prints regardless of its state.
form1.#subform[0].CheckBox1::change - (JavaScript, client)
if (this.rawValue == 1) {
this.relevant = "+print";
}
else {
this.relevant = "-print";
}
It can be noted that I am adjustng the 'relevant' attribute, in response to the 'change' event.
Any ideas on where I have gone wrong??
Thanks
Solved! Go to Solution.
Views
Replies
Total Likes