API action fails sending signature field draw it data with repeater field data

By: Jane Onorati | Asked: 12/14/2024
ForumsCategory: How-toAPI action fails sending signature field draw it data with repeater field data
Jane OnoratiJane Onorati asked 3 days ago

I am pretty sure this is a bug and have contacted Formidable Support about it.  I have a form that has a repeater in it and a signature field outside of the repeater.  I have an API post action to send this data to another form.  The receiving fields match with the sending fields, except the signature is sent to a text field as that's the only way to transfer the signature to a field in another form.  The data all shows up in the destination form unless you choose to draw the signature instead of type it.  The Formidable Log shows the action ends in a 400 error if you draw a signature.  Also if you don't transfer any repeater data, a drawn signature will be transferred to the destination field just fine.

I'm trying to come up with a work-around but the only thing that looks like it could work is PHP.  However the value transferred is serialized.  Any suggestions for a work around?   The attached text file shows an example of the serialized data for a drawn signature.  An example of the one for the typed signature is much shorter (signature is "Jane"):  a:3:{s:7:"content";s:4:"Jane";s:5:"typed";s:4:"Jane";s:6:"format";s:5:"typed";}.

Attachments
1 Answers
Victor Font answered 17 hours ago
The attachment is unreachable. If I recall, signatures are saved as .png files. If you have to unserialize() to convert the serialized array into a workable array. If you want to post the other array, use pastebin or gist and post the link here.
Jane OnoratiJane Onorati replied 16 hours ago

Hi Victor. I did get a response from Toyin at Formidable Support: "This is because the file path breaks the format when sending data RAW format. The signature field sends a file path, this path contains characters that affect the data structure in RAW format. I have escalated this to our developers for further review." I'll wait to see if they come up with a fix. I have handled serialized data in PHP before but don't remember how I did it so would need to review how to do that.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right