Ask Your Question

How to get data from a writer form into a field variable? [closed]

asked 2013-05-03 13:12:01 +0200

Gaffer gravatar image

I want to create a form-driven writer document.

For example, I want a document that looks like this:

My favorite toy is: [ball]. My favorite colour is [blue]. I would like a blue ball for my birthday.

Where the fields marked with [brackets] are form fields and the last sentence picks up "blue" and "ball" from the form.

There are lots of guides to using forms to drive databases but I can't find one that shows how to use them for a document.

Any pointers would be appreciated.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by Alex Kemp
close date 2015-10-31 04:07:12.802163

1 Answer

Sort by » oldest newest most voted

answered 2013-05-05 16:44:48 +0200

mahfiaz gravatar image


Insert → Fields → Other → Variables → Set a variable, pick a name, value and Format (text).

Later you can insert the variable again with "Display variable". If you double click on the variable where it is set, you can change the value.

edit flag offensive delete link more


Yes. And no... That is using fields. They are too easy for a user to delete. I want to use a form, where there is a form design drawn with a boxes to enter text (or buttons to set other things). I want to capture data from the form then use it to drive the output. I guess that somehow i need to capture the data from the form into a macro but I can find no examples of this.

Gaffer gravatar imageGaffer ( 2013-05-09 20:40:17 +0200 )edit

You could search "OpenOffice Writer form macro".

mahfiaz gravatar imagemahfiaz ( 2013-05-09 23:47:31 +0200 )edit

Question Tools


Asked: 2013-05-03 13:12:01 +0200

Seen: 889 times

Last updated: May 05 '13