Chronoforms 6 - Embeeding Signature Widget results as Attachment

cesar 20 Dec, 2017
Hello guys!

I have a question.

How do you exactly make the Chronoform v6 "attach" the obtained signatures both as "result page" (for printing) and as email?

I have been having issues since the last update. The images no longer appear when invoking them using the {data:field} code.
They now appear in the bottom in a huge string of text of base64 PNG format.

Emails are exactly the same, no real content and no attachments.

I tried to follow these suggestions: https://www.chronoengine.com/forums/posts/t99435/p358404.html
But the images appear broken.



Example of results (debugging)


Array
(
[option] => com_chronoforms6
[view] => form
[Itemid] => 362
[chronoform] => credit-XXXX-authorization
[event] => submit
[name] => Cesar XXXXXX
[address] => 403 N. XXXXXX
[cellphone] => 4173343106
[email] => cesar@yourXXXXX.COM
[Visa] =>
[Mastercard] => 2
[Discover] =>
[Amex] =>
[credit_card_number_] => 1111444455558888
[card_identification_number_] => 345
[expiration_date] => 12/2022
[printname1] => XXXXX
[date_1] => 2017-12-19 00:00:00
[Signature1] => data:image/png;base64; (long row of code here)
[date_3] => 22/2017
[Submit] =>
)
farscape 01 Jan, 2018
I'm having almost the same issue. The post that cesar links to is for v5. The png file saves to the server, although with a size of zero. Also, in v6, based on the signature FAQ, I'm not sure where to place the {sig_img} "in the email template".

Thanks!
Max_admin 03 Jan, 2018
Answer
Hello,

Apologies for the late reply!

I understand from the first post that this used to work before the latest update ?

Here is an example of a working image tag with base64 format:

<img src="data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAUA
AAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO
    9TXL0Y4OHwAAAABJRU5ErkJggg==" alt="Red dot" />

So the end HTML code of your email/page should have a similar syntax to the example above, is this the case ?

According to the debug you would need to use this code in the email:
<img src="{data:Signature1}" />


Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
cesar 04 Jan, 2018
1 Likes
Signatures now work properly thanks!

Both appear correctly in the "confirm" page and in the email.

Much appreciated max!
This topic is locked and no more replies can be posted.