Ask Your Question
0

Conditional user field style in writer

asked 2016-06-02 12:29:57 +0200

librerated gravatar image

Hi,

I have a writer (not calc!) template with some inserted user fields.

I would simply like to modify the style of the field value to italic if the user field has a particular value, so if my user field name is 'company', I'd like to configure this pseudo code:

If company.value == 'Unassigned' apply italic style

Googling for conditional formatting etc seems to provide solutions for calc.

Any hints welcome, thank you!

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2016-06-02 14:11:42 +0200

pierre-yves samyn gravatar image

Hi

LibreOffice does not have conditional character styles (you can create conditional paragraphs styles but the condition depends on the context: paragraph in a table, a section, a header, not the contents of a variable).

One solution might be to insert Hidden Paragraph fields that can hide paragraph depending on the contents of a variable.

In the ConditionalField.odt attached document the Company field is in italics. Double click on the first "Unassigned," change the value, the paragraph will be hidden and another will display the bold field.

HTH

Regards

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2016-06-02 12:29:57 +0200

Seen: 152 times

Last updated: Jun 02 '16