Hi,
I am wondering how to show the edited text generated by AI in AI field in Formidable Forms to the E2PDF PDF file. When I trigger the action SUBMIT(button) to create the PDF, it shows the original (first-time generated) text in the PDF, not the edited version. Why E2PDF can't register or pull the edited version of the AI generated text?
Can you help me to solve this problem?
E2Pdf should output the value that is saved under the Formidable Forms entry.
1. Which value do you see under the saved entry?
2. Can you please clarify how do you edit the field?
3. Do you use [e2pdf-download] or [e2pdf-attachment] shortcode in the "Success Message" / "Mail action"?
We would really appreciate your feedback at WordPress.org!
Thank you for your fast response!
1. The value is only [12]. That is the ID of the field in Formidable forms.
2. That field (the AI field) doesn't allow editing originally. I created an HTML so the AI field could be editable. Her is the HTML:
<script>
document.getElementById("frm_field_[id]_container").addEventListener("input", function() {
// Oppdater den skjulte inputen med innholdet fra contenteditable div
var editedContent = document.getElementById("frm_ai_response_[id]").innerText;
document.getElementById("hidden_ai_response_[id]").value = editedContent;
});
</script>
3. I use [e2pdf-download]
21 August, 2024 12:44:06
E2Pdf
Support
Topics: 7
Messages: 3335
Unfortunately, it's the issue with your code. We just checked it on our side and Formidable Forms doesn't store modified value, we still see the original AI value at the "Formidable" -> "Submissions" page, and exactly that value is shown in the PDF.
It needs to modify the code to store the edited value by the Formidable Forms so you can see it at saved submission by Formidable Forms, and in this case, E2Pdf should output the correct value.
We would really appreciate your feedback at WordPress.org!
We use tools, such as cookies, to enable essential services and functionality on our site and to collect data on how visitors interact with our site, products and services. By accepting cookies you are agreeing to our Cookie Policy.