Sunday, April 4, 2010

Template question - repeating fields

Is there a way to generate a template that will produce a second page with identical fields to the first one.?IE we have certain fields on the first page that serve as a header.?Instead of copying the text to the new fields is there a way to lock the field name in place so that when a new page is generated the fields will mirror whats on the original page.

Template question - repeating fields

Look in the reference file.

The Template object has exactly one method: spawn(), which does exactly this.

Template question - repeating fields

Users with Reader do not have access to the templates object and its methods.

Thanks

Is there a way to use the spawn method and have it rename only certain fields when the second page is created?

No, but you can do it manually.

Thanks im still kinda new?at javascript.?Im guessing it would look something like this:

text11.name = ''text11'' + ''.'' + pagenum

Is that right? and how would i specify to rename the new text11 field?

Thanks for your help.

The name property of a field is Read Only and can only be set at creation.

You will need to manually duplicate the entire field on the new page, and

then set the name to whatever it is you want.

Thanks,

Could you point me to where i could find out more about that??I tried the duplicate feature from Forms%26gt;Edit Fields%26gt;Duplicate and it copied the field exactly name included.

Still new to javascript, so mostly guessing and patching together using knowledge of vb and c++.

Thanks for your help.

No comments:

Post a Comment