hoffcamp
Forum Replies Created
-
Forum: Plugins
In reply to: [Form Manager] [Plugin: WordPress Form Manager] Submissions not registeringI’m not sure. That tends to be because of a cache plugin. You can make the forms work by turning off the nonce check (which is usually to prevent accidental multiple submission) in Advanced Settings > Security > Disable nonce check.
If you add this to your theme’s functions.php file, or a plugin, you can restrict access on the submission data page to only submissions by that user:
add_filter( 'fm_data_query_clauses', 'fm_show_user_data_only' ); function fm_show_user_data_only( $clauses ){ global $current_user; get_currentuserinfo(); if ( $current_user-> user_login != 'admin' ){ $clauses[] = "user = '{$current_user->user_login}'"; } return $clauses; }My mistake – the code restricts access on the ‘Submission Data’ page, not the formdata shortcode. There isn’t a way to alter the behavior of the formdata shortcode. If you are comfortable formatting the results yourself, you could query the form’s data table directly and check against the ‘user’ column.
Unfortunately the state of the e-mail attachments hasn’t changed, so your files can only be sent as a link. I am working on an upgrade though, I haven’t forgotten about this.
You could put the code into functions.php in your theme, just remember to redo the change if you update the theme. BTW the original code had an error in it. The corrected code is here:
add_filter( 'fm_data_query_clauses' , 'fm_addUserClause' ); function fm_addUserClause( $clauses ){ $clauses[] = "user = '".$current_user->user_login."'"; return $clauses; }Its okay – WP should be filtering posts for things that can break the layout anyway…
The filenames only have access to %filename% and the values from a php date format. To do what you need, the form items would have to have access to each other’s data, which would take a lot of rewriting.
You could use the .csv file of the submission data to cross reference firstname/lastname with the uploaded file name in a spreadsheet program.
I’ll include these changes in the next update. Thanks!
I just updated the custom submission plugin example on my site (the link is here). The example outputs some debug information about the form and the submitted data, which will show up at the top of the page. The code is also a good example of how to access the information about the submitted form, and the submission data itself.
For your case you would either check the form ID or the form slug to determine which form was submitted. Note that this action is only run after a successful submission, so if a file upload or reCAPTCHA fails, the code is not run.
Forum: Plugins
In reply to: [Form Manager] [Plugin: WordPress Form Manager] submit buttonThe submit button is *there*, but apparently invisible. To verify this look at the page source, look for
<input id="fm_form_submit" ..., or you can click around the blank area below the right side of the reCAPTCHA, and you will eventually hit the submit button.This is most likely caused by your theme’s CSS.
Forum: Plugins
In reply to: [Form Manager] [Plugin: WordPress Form Manager] Setting labels side by sideIn the form editor, under Appearance > Label position, you can set the labels to appear above the form items (default) or to the left. Beyond that, you would need to make a custom form template.
Forum: Plugins
In reply to: [Form Manager] [Plugin: WordPress Form Manager] no admin confirmation emailThis is a bug with the way FM sends e-mails. Basically, FM sends two separate e-mails, in order to hide the admins’ e-mail address from the user, but some hosts don’t allow you to send different e-mails without waiting for a certain amount of time, even though you can usually send a single e-mail to many different destination addresses without a problem. This is something the host does to prevent spam from being sent by your site, but is fairly common, so I consider it a bug. I don’t have a fix yet, though.
The new setting is in the form editor > Advanced > Behavior > Exact URL
I’m not sure what is causing that to happen, but I’m adding an option to specify the ‘destination’ URL directly in the next update, which should solve your problem. However…
The
formshortcode usesget_permalink()for the form action. I noticed on both of the forms you linked to, the form action was set tohttp://(...)/contact, instead ofhttp://(...)/category/contact. On the first form, this gave a 404 error. The value of get_permalink() should not return a 404 error. So there is something going on between permalink generation and parsing.The PHP function
deserializewill do what you need.Forum: Plugins
In reply to: [Form Manager] [Plugin: WordPress Form Manager] Hidden FieldsSorry to get to this so late. You could do this with javascript:
– add a note to the form, put the JS with script tags in the note, and check the ‘HTML’ box.
– You can hide elements with CSS or javascript. If you give the items a nickname you can hide their ‘li’ (the id is ‘fm-item-(nickname)’) with JS or CSS.
– add a text item to the form, and hide it. Use this to store the result.I like the idea of conditional hidden values, I’ll add it to the list.