I have a somewhat complex problem. I need to fill two different forms and save them with the values filled. I think I can use forms + template.
I created a template with two pages (one for each form), put fields in both pages, and protected the document, so user can only fill the fields in the created document. There are repeated information in both forms. I don't wanna fill the same information twice. If I was using Word, I would include a calculated field and include the reference for the other field, and make the field "read-only", but appears that I have to program a macro in OOo, is that right?
I found a tutorial (http://www.softwarelivre.gov.br/protoco ... rativa.pdf - in portuguese) that uses a dialog box



My questions:
1. can I use a dialog to fill the form, in a way that the dialog is called only when a new document is created from the template? If someone opens the created document, it will be only for reading or printing purposes, so it's better if the newly created document becames "read-only".
2. how I copy the info from one field to other field? Macro programming? Or I should use "bookmarks" instead of fields?
3. The form I created have a problem, if I use TAB it navigates only in the first page, I have to manually jump to the first field on the second page. After that, the TAB navigation works as a charm, jumping from one page to another. Is there a way to correct this? The less the user has to use the mouse, the better.
If you need an example to think, it can be something like:
(first page, form 1)
Drive permit: [drive permit #]
Name: [name]
Date: [date emission]
In signing this Agreement I hereby acknowledge my acceptance of an agreement with some suspicious corporation or government agency.
__________________
[name], Date.
(second page, form 2)
Permission number [permission number]/2013 Valid until [valid until date]
Name: [name] Drive permit: [drive permit #]
Address: [address line]
City: [city name] ZIP: [zip code]
(end of document)
In this example the user will fill "drive permit #", "name", "date emission", "permission number", "valid until date", "address line", "city name", and "zip code", and the first two fields are repeated in both forms.
Thanks for your time, and sorry for the bad english.