Skip to main content
Participating Frequently
Nov 9, 2018 7:47 PM UTC
Question

Using Element Values to Apply Text Format Rules

Is it possible to write context rules in an EDD in such a way that Text Format rules are different based on the value of an element? I have an element in a list and I want to change the numbering format based on the value of a parent element.

Comparable structure might be:

FirstName

LastName

List

     ListItem1

     ListItem2

I want to change the Autonumber format of ListItem1 and ListItem2 depending on whether the <TEXT> of FirstName="Sam" or FirstName="Dave"

Thanks for any help,

Brian

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

Inspiring
Nov 9, 2018 8:20 PM UTC

No, text format rules cannot query the content of an element. Alternatives include:

1) If you are using XML, and if the element content does not have subelements, you could use XSLT to switch the content to an attribute value and then use read/write rules to querty the attribute value.

2) Use a script or plugin to format the element. An easy way to do so is use the automation to set an attribute and define the formatting for the attribute.

        --Lynne

Translate