Skip to main content
Known Participant
December 23, 2024
Question

Checkbox items when selected populate other areas of a PDF

  • December 23, 2024
  • 1 reply
  • 424 views

Hello!

 

I would like a list of possible Agenda items in one part of a PDF to populate on another section of the same PDF when the checkbox for that item is selected. 

 

I would like when the checkbox is selected that the item(s) appear sequentially on the Agenda.

 

As different items will be selected at varying times, I cannot code that "Checkbox A" appears on Agenda line #2 as that may not be the case each time. So if the third checkbox is selected, it should appear as the first line item on the agenda. I hope I haven't made anyone's head explode. 

 

Is this possible?

 

Thank you so much in advance!

This topic has been closed for replies.

1 reply

PDF Automation Station
Community Expert
Community Expert
December 23, 2024

What do you mean "sequentially"?  In the order they are selected?  The area you are populating, is it on multi-line field or a group of text fields?  If the latter, what are the field names?

Known Participant
December 23, 2024

Hello and thank you for answering my reply,

 

Yes, I would want them to populate in the order they are selected. And the area would not be a multi-line field but a group of text fields named 1-7.  

 

I have attached an image of the area that would be populated. 

 

Thank you!

PDF Automation Station
Community Expert
Community Expert
December 23, 2024

Use the following mouse up action script in each check box, but change "ABC" to whatever the agenda item is:

if(event.target.value!="Off")
{
if(!this.getField("1").value)
{this.getField("1").value="ABC"}else
if(!this.getField("2").value)
{this.getField("2").value="ABC"}else
if(!this.getField("3").value)
{this.getField("3").value="ABC"}else
if(!this.getField("4").value)
{this.getField("4").value="ABC"}else
if(!this.getField("5").value)
{this.getField("5").value="ABC"}else
if(!this.getField("6").value)
{this.getField("6").value="ABC"}else
{this.getField("7").value="ABC"}
}