- Issue created by @mlncn
- Merge request !59Issue #3502991: Allow import of simpler fields JSON without nested value array β (Open) created by mlncn
- π¨π¦Canada Liam Morland Ontario, CA π¨π¦
Thanks for the patch. This is a good idea.
The Drupal 7 version of FillPDF accepted JSON imports that looked like this:
{
"Page01-YourFirstName": {
"label": "First Name",
"value": "[node:field-first-name]",
"replacements": []
}
}
FillPDF should continue to accept this simple format in addition to the more verbose current equivalent:
<code>
{
"fields": {
"Page01-YourFirstName": {
"pdf_key": [
{
"value": "Page01-YourFirstName"
}
],
"label": [
{
"value": "First Name"
}
],
"prefix": [],
"value": [
{
"value": "[node:field-first-name]"
}
],
"suffix": [],
"replacements": []
},
This is particularly important for us because we have a hundred fields defined in the above format!
Transform the concise format into the expanded form automatically when it is imported.
None.
Accept import JSON without optional fields, without nested/redundant single value array.
None.
Active
5.2
Code
Thanks for the patch. This is a good idea.