Highlighted

Using Element Values to Apply Text Format Rules

Community Beginner ,
Nov 09, 2018

Copy link to clipboard

Copied

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

TOPICS
Structured

Views

121

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Using Element Values to Apply Text Format Rules

Community Beginner ,
Nov 09, 2018

Copy link to clipboard

Copied

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

TOPICS
Structured

Views

122

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Nov 09, 2018 0
Adobe Community Professional ,
Nov 09, 2018

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 09, 2018 0