Adobe Pdf Generation api - if else conditional statement in table not working
Hi Adobe Support Team,
I am using this json to get binded to template and create pdf . I had to use field2 in two columns of table conditionally:
{
"form_fills": [
{
"field1": "x",
"field2": "No Contact",
"field3": "comments"
},
{
"field1": "y",
"field2": "Contact",
"field3": "no comments"
}
]
}
I am using below template table with placeholders.
Part | Contact | No Contact | Comment |
{{form_fills.field1}} | {{form_fills.field2= "Contact" ? "✓" : "" }}
| {{form_fills.field2= "No Contact" ? "✓" : "" }} | {{form_fills.field3}} |
Can you please suggest what could be the issue. Same expression outside of table would work for a single value . for table type of data, it is not working.
