maximum.software
Forum Replies Created
-
Forum: Plugins
In reply to: [PDF Forms Filler for CF7] Payment on PDF’sI’m not sure about that one. Maybe you have ‘Mail (2)’ enabled in your CF7 form. Otherwise, I would get in touch with the developers of that plugin.
Forum: Plugins
In reply to: [PDF Forms Filler for CF7] conditional-fields-cf7 supportHi,
I did not realize your use case wasn’t working, but I looked into it and here is what I concluded:
The problem is not that my plugin doesn’t support the Conditional Fields for Contact Form 7 plugin. As far as I can tell, the problem is that the Conditional Fields for Contact Form 7 plugin doesn’t hook into the
wpcf7_mail_replace_tags()function to handle groups in mail-tags, and that the Contact Form 7 plugin doesn’t provide an easy way for Conditional Fields for Contact Form 7 to hook into thewpcf7_mail_replace_tags()function.The groups are working in the email message because Conditional Fields for Contact Form 7 plugin has code that handles groups in email message (see function
hide_hidden_mail_fields()). However, as far as I can tell, this code doesn’t run for mail-tags that are outside of CF7 form properties (including whenwpcf7_mail_replace_tags()is called). My plugin callswpcf7_mail_replace_tags()to process mail-tags, so, the Conditional Fields for Contact Form 7 groups never get processed.I will explain how to make it work with my plugin (as a temporary workaround).
Change this line in my plugin’s main PHP file:$data[$field] = wpcf7_mail_replace_tags( $mapping["mail_tags"] );To the following:
$data[$field] = wpcf7_mail_replace_tags( $mapping["mail_tags"] ); if( class_exists( 'Wpcf7cfMailParser' ) ) { $hidden_groups = json_decode(stripslashes($_POST['_wpcf7cf_hidden_groups'])); $visible_groups = json_decode(stripslashes($_POST['_wpcf7cf_visible_groups'])); $repeaters = json_decode(stripslashes($_POST['_wpcf7cf_repeaters'])); $parser = new Wpcf7cfMailParser($data[$field], $visible_groups, $hidden_groups, $repeaters, $_POST); $data[$field] = $parser->getParsedMail(); }Image embeds, file name, and save path mail-tag processing code will need a similar change if you want to use conditional field groups there as well.
I will not be adding the above code into my plugin because this is a responsibility of the Conditional Fields for Contact Form 7 plugin developer and the Contact Form 7 plugin developer, unless someone can prove otherwise.
Even if I moved the mail-tag containing settings of my plugin into Contact Form 7 form properties, that is still not going to solve the problem because Conditional Fields for Contact Form 7 plugin only seems to process ‘mail’, ‘mail_2’, and ‘messages’ properties.
Please contact the developers of both plugins and direct them to this forum topic.
Thank you.
- This reply was modified 3 years, 6 months ago by maximum.software.
- This reply was modified 3 years, 6 months ago by maximum.software.
Forum: Plugins
In reply to: [PDF Forms Filler for WPForms] Splitting ParagraphsHi,
I’m not sure what you mean by ‘split’.
PDF form’s text fields have a ‘multi-line’ property that can be enabled to allow multiple lines. The filled text in the field wraps automatically. You can also select ‘auto’ for the field’s size, which will make the text font size adjust to fit into the available space. However, all of the above will need to be done in your PDF editing software and not in the plugin interface.
If you would like to do any kind of text processing on the WordPress side, you will need to use smart tags. You will likely need to write your own code to implement your custom smart tag.
Let me know if you are asking about something else entirely.
Forum: Plugins
In reply to: [PDF Forms Filler for CF7] Payment on PDF’sHi Brian,
I’m sorry for the late reply.
The change that is needed is as follows:
Change this line:
add_action(‘wpcf7_before_send_mail’, ‘cf7pp_before_send_mail’);
To this line:
add_action(‘wpcf7_before_send_mail’, ‘cf7pp_before_send_mail’, 99999 );This will make that hook run after all others are done.
Let me know if that helps or not.
Thanks.
Forum: Plugins
In reply to: [PDF Forms Filler for CF7] Protect text fields after fillingHi Alex,
You can use the ‘flatten’ option. That will turn your filled PDF form fields into text.
Let me know if that helps or not.
Thanks.
Forum: Plugins
In reply to: [PDF Forms Filler for WPForms] Ho to create a pdf form field?Hi,
You need to use PDF editing software. There is a number of commercial and free solutions out there, as well as online web based editors.
Please see the plugin documentation page about this topic:
https://pdfformsfiller.org/docs/create-pdf-file/Let me know if that helps or not.
Thanks.Forum: Plugins
In reply to: [PDF Forms Filler for CF7] Critical error on integration – PDF.ninja APIThere must be the thrown exception’s message somewhere in PHP logs. Anyway, I may have found the issue but I’m not sure. I’m going to do some more testing and release a fix. Thanks for your crash report.
What is the other plugin that you found?
You might try my other plugin called PDF Forms Filler for WPForms, which is almost exactly the same but integrated with WPForms. It doesn’t have the function that crashes, so, it might work better for you.Forum: Plugins
In reply to: [PDF Forms Filler for WPForms] Change PDF File nameHi Chris,
You might be able to set something up with conditional notifications, but you will need to attach all the PDFs to the form. Hopefully, the number of languages is very small, so, it wouldn’t cause too much of a slowdown.
Additionally, you can make use of the ‘Skip when empty’ option if you can set your mappings up in such a way that the other PDFs’ fields remain blank (and therefore skipped). There is a number of ways to make this work, such as making the same form field into different fields (one for each language) and showing only one (conditionally depending on the language), then mapping each one to the corresponding PDF file. This will cause the user to only fill the fields that correspond to their language and will leave the other PDFs unfilled (and skipped).
Let me know if that helps or not.
Thanks.Forum: Plugins
In reply to: [PDF Forms Filler for WPForms] Change PDF File nameHi,
There is a filename option. It allows you to specify the file name. You can use a smart tag in that field. If one of your form fields is the language then you can insert its smart tag in the file name. For example, your file name option might be
Alert-Card-{field_id="1"}.pdf. You can access the PDF options by clicking the options button next to the attached PDF.Let me know if that helps or not.
Thanks.
Forum: Plugins
In reply to: [PDF Forms Filler for CF7] Critical error on integration – PDF.ninja APIHi,
What is the exact error message?
Thanks.
It would be great to know exactly what was causing the issue. I might be able to come up with some improvement for my plugin.
Forum: Plugins
In reply to: [PDF Forms Filler for CF7] Font SizeThe PDF field that is being filled has settings for font size and such. The text being filled has no formatting information.
Forum: Plugins
In reply to: [PDF Forms Filler for CF7] Font SizeHi,
Font properties can be changed using PDF editing software. Once you edit your PDF, you would need to attach the new file to your form and remove the old file.
Let me know if that helps or not.
Thank you.
What plugins and theme do you have activated?
Forum: Plugins
In reply to: [PDF Forms Filler for CF7] Spinning WheelThis is likely an issue on the front end with some other plugin.
Do you see any errors in the browser console?
Is it possible for you to share a URL to the page that has the issue?