Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

XML Code for replace a specific text characters in text fields

Avatar

Level 2

Hello,

 

I have a product list in Dynamic PDF which is connected to a Access DB.

My Product Name field look like that :

Primary Product Name (Secondary Product Name)

 

I want to replace " (" with "\n" (new line, or break). 

How I can obtain a field with 2 lines? Any ideas ? I want a <BR> or \n after "Primary Product Name".

Primary Product Name (Secondary Product Name)

 

I mention , in pdf exist many entries and I cannot do it manually.

 

Thanks.

 

3 Replies

Avatar

Employee

Familiarize yourself with "Floating fields". Basically you place a Text object and Insert-Floating Field into that text object. See the example here

https://documentcloud.adobe.com/link/review?uri=urn:aaid:scds:US:16977daa-eaae-4e5d-b445-770b645ade7...

Kosta_Prokopiu1_0-1605084131367.png

 

Avatar

Level 2

My text field in the table is filled from the database with a single row, and I want my text to be interrupted before the first parenthesis, to move to the second row.

TehnologiaInformatiei_0-1605085183260.png

TehnologiaInformatiei_1-1605085235580.png

 

 

Avatar

Employee
yes, you can use a Text object in the table field similar to what I have shown in my sample and the floating fields get data bound to your access data connecton. Any script that combines the 2 fields would not be required in this scenario.