swissboy1984
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] Checkbox value “& nbsp;”I also need to be able to include
in certain option values. In the body of the email sent, I mention the employee’s role (in French), and if the person is an intern, the information comes before the role. If the person is in training, the information comes after:[intern][role][training]
Example:
Intern[ ]Advisor
Advisor[ ]in trainingThanks for your answer !
The issue was with the [email] dropdown list field.
The values were : “Firstname1 Name1 <[email protected]>” “Firstname2 Name2 <[email protected]>”
Works fine with : “Firstname1 Name1|[email protected]” “Firstname2 Name2|[email protected]”
Best regards
Chrome always checks if the password you wrote is in the worldwide database of hacked passwords.
Forum: Plugins
In reply to: [Store file uploads for Contact Form 7] Uploaded File has no File-TypeHi,
Here is my solution (if like me you only have 1 file field in your form).
There is 2 issues with this plugin since CF7 5.4 :
1) CF7 changed the upload field to an array (lunacodes’ error)
2) The WPCF7_Submission::get_instance()->uploaded_files() method stopped returning the uploaded filesTo fix these issues, you have to edit the extension’s code :
Issue 1
In the nmr_create_attachment function, add this code on first line (before checking the filetype) :
if (gettype($filename) == 'array') { $filename = reset($filename); }
Issue 2
In the nmr_on_before_cf7_send_mail function, replace :
$uploaded_files = $submission->uploaded_files();
By$posted_data = $submission->get_posted_data(); $uploaded_files = $posted_data['File'];
/!\ where File is the exact name of your file field on CF7
- This reply was modified 3 years, 10 months ago by swissboy1984.
- This reply was modified 3 years, 10 months ago by swissboy1984.