Skip to main content
Participating Frequently
November 12, 2019
Question

listitem.checked on indesign 15.0 (2020)

  • November 12, 2019
  • 3 replies
  • 2783 views

Hi... today i have update indesign with 2020 version, but i have find a litle problem for my older script:

with the new version all form create by script cant show checkmark at left of listitem when the property "listitem.checked" its "true"...

 

any suggestion for solving?

This topic has been closed for replies.

3 replies

Community Expert
November 12, 2019

Hi Mirco,

I can confirm the bug.

Tested with InDesign CC 2019: All items are checked visibly:

 

 

Tested with InDesign 2020 version 15.0.0.155: Not working. Means, the checkboxes are missing visibility. Only their indention is visible, the white space after the check box. See far below for more details on this.

 

 

Here a test where I set the value for checked on the first item only to true ( note the little indention here )

 

 

All other items return value undefined with property checked. Property checked can have 3 states:

undefined, true or false. If not declared the value is undefined and no checkbox is drawn.

 

Below the same code executed with InDesign CC 2019:

 

Now you can see ( or perhaps guess ) that with InDesign 2020 "only" the checkbox is missing, checked or not. The white space after the invisible checkbox is always showing up.

 

Regards,
Uwe Laubender

( ACP )

 

EDITED: Still not fixed with version 15.0.1.209

mirco1981Author
Participating Frequently
November 13, 2019

unfortunately this confirms that there is currently something I can do at the code level to solve this bug ... I will have to modify my previous scripts to remedy this problem unfortunately ...
thank you all for the answers! I hope a fix is coming soon ...

John D Herzog
Inspiring
November 26, 2019

I just added the listitem.image to my script giving a green box for checked and a blank box for unchecked.

TᴀW
Legend
November 12, 2019

Yup, looks like a bug. I'll report it on the prerelease...

id-extras.com | InDesign tools & scripts for typesetters, form designers, and translators
Willi Adelberger
Community Expert
Community Expert
November 12, 2019

More details plz.

mirco1981Author
Participating Frequently
November 12, 2019

for example you can try with this simple script:

 

#target indesign

var x = new Window ("dialog","test win", [0,0,150,150])
var y = x.add("listbox",[10,10,140,116])
for (var i=0;i<5;i++) {
y.add("item", "test " + i)

 

// this is the problem... on object model i can find this property but checkmark are not show...
y.items[i].checked = true


}

x.center()
x.show()

 

...