Skip to main content
Participant
September 4, 2022
Question

Adobe Document Generation Yes/No in word Table

  • September 4, 2022
  • 1 reply
  • 4173 views

Hi,


I have been ableto use adobe document generation to map the fields from an excel data source into a word template. The excel file has columns with Yes/No values which needs to reflect on the word template in a table.

 

Option 1 - Check the correct option in the table

Option 2- if option 1 is not possible show the correct value in the template. i.e if the excel row has a value of Yes, hide No and vise versa

 

Excel data:

Unique identifier

Authoritity for repairs, maint'nce, cleaning

Council rates

Utility connection fees

Water, sewerage + drain rates

Water usage charges

1

Yes

Yes

Yes

Yes

Yes

2

No

No

No

No

No

3

Yes

Yes

No

Yes

Yes

4

Yes

Yes

No

Yes

Yes

5

Yes

Yes

Yes

Yes

Yes

6

Yes

Yes

Yes

Yes

Yes

7

Yes

Yes

Yes

Yes

Yes

8

Yes

Yes

Yes

Yes

Yes

9

Yes

Yes

No

Yes

No

10

Yes

Yes

No

Yes

No

 

Below is the table in the word file. 

Repairs, maintenance and cleaning costs:

☐ Yes    ☐ No

Council rates:

☐ Yes    ☐ No

Utility connection fees:

☐ Yes    ☐ No

Water, sewage and drainage rates:

☐ Yes    ☐ No

Water usage charges:

☐ Yes    ☐ No

 

I was able to follow the video below to populate the word template

https://www.youtube.com/watch?v=H8Txc7Sa8Ts&ab_channel=AdobeDevelopers

 

 

Thanks

Jag

This topic has been closed for replies.

1 reply

Raymond Camden
Community Manager
Community Manager
September 6, 2022

Unfortunately, conditional statements do not work now in table cells. You could, dynamically, create a column in your data with the right values, YES or NO, and just use the column when generating the table. 

Participant
November 5, 2023

Hi, 

 

Just checking if the statement  "Unfortunately, conditional statements do not work now in table cells. " is still true?

On this page: 

https://developer.adobe.com/document-services/docs/overview/document-generation-api/complextableconstructs/

 

which is dated "Last updated 4/18/2023" it suggests that it is still possible to do conditional rows in a table. (I copied the JSON code and the example, and I can't make it work.)

 

Many thanks,

Philip 

Raymond Camden
Community Manager
Community Manager
November 6, 2023

It is not supported yet, but I can say a proper fix is _very_ close to being released. I'll be honest and say I probably won't remember to post here, but in general I've been posting to the forum here on updates to let folks know.