Empty token values are showing up as [node:field_name]...
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | fillpdf_1313972_token_replace_clear.patch | 1.66 KB | wizonesolutions |
| #2 | novalues.jpg | 82.26 KB | ErnestoJaboneta |
| #2 | values.jpg | 79.33 KB | ErnestoJaboneta |
Empty token values are showing up as [node:field_name]...
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | fillpdf_1313972_token_replace_clear.patch | 1.66 KB | wizonesolutions |
| #2 | novalues.jpg | 82.26 KB | ErnestoJaboneta |
| #2 | values.jpg | 79.33 KB | ErnestoJaboneta |
Comments
Comment #1
wizonesolutionsIt's best to set the original one back to active and change the version number.
Can you paste your Fill PDF link? You can change the domain to example.com if necessary.
Can you also take a screenshot of the section where the "TOKEN VALUES" section confirms that you can use the token you are trying to use? Maybe there's a typo.
Finally, has this always been happening? (Or have you just started using the module?)
Comment #2
ErnestoJaboneta commentedI've just started using the module.
(Sorry about the duplicate post. For some reason I didn't think to change the status filter to All on the issues list and so I couldn't find the original.)
https://example.com/fillpdf?fid=24&nid=53
I've attached two screenshots. One with values filled in and one with the values removed from the node. For the last name field nothing shows up when the field is empty, but the others show the "[node:field_name]".
Comment #3
wizonesolutionsHmm, that's strange. I'll do some testing on this and get back to you. Are first and last name both Text fields?
It looks like the first empty field works properly but subsequent ones fail. I bet this has something to do with the changes to the token system in Drupal 7.
Comment #4
wizonesolutionsOK, I've reproduced this issue and am troubleshooting.
Comment #5
wizonesolutionsDiscovered the issue. According to #1272028: Field token not replaced when field is empty, calling modules need to pass
'clear' => TRUEtotoken_replaceif blanks should be returned when tokens cannot be replaced.Ernesto, can you try this patch (see http://drupal.org/patch for how to apply it) and let me know if it works?
Bumping version.
Comment #6
ErnestoJaboneta commentedYes, that seems to have worked.
Comment #7
wizonesolutionsThanks. Committed. And 7.x-1.1 is coming right up.