Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Error: Accessor 'Xfa.form.data.Pageset.Header.medium.stock' is unknown

Avatar

Level 1

Hi,

I have a requirement to set the page size dynamically, users are going to upload graphic files by specifiying the page size, based on that I need to change the page size and orientation dynamically, I wrote form calc script on body page form ready event as  to set the page size

 

xfa.form.data.pageSet.Header.medium.stock = "a4"

it gives me a script error saying Error: Accessor 'Xfa.form.data.Pageset.Header.medium.stock' is unknown, what am I doing wrong here.

0 Replies