hoffcamp
Forum Replies Created
-
Forum: Plugins
In reply to: [Form Manager] [Plugin: WordPress Form Manager] File Attachment LinkThat is a weird glitch. Is it still happening?
On most themes the checkboxes radio buttons will be vertical. Could you link to the form?
That is a bug – I’ll fix that for the next update.
First go to the ‘Form Extra’ tab in the form editor and give the item a nickname, for example “the-text”. This lets you play with the output table using CSS. The TH will now have the class ‘fm-item-header-the-text’.
Forum: Plugins
In reply to: [Form Manager] [Plugin: WordPress Form Manager] databse column nameI should have documented this:
The ‘wp_fm_items’ table stores the specification of each item in every form. The column ‘ID’ corresponds to the *form* ID (Confusing, but that’s how it works right now). The column ‘unique_name’ corresponds to the field name in that form’s data table. The column ‘nickname’ is the nickname you can give the item in ‘Form Extra’ in the form editor. As long as the ‘unique_name’ entry for a form item corresponds to the field name in the form’s data table, everything is kosher.
You can find the form’s data table name under ‘wp_fm_forms’, under the column ‘data_table’.
Forum: Plugins
In reply to: [Form Manager] [Plugin: WordPress Form Manager] E-mail verification conditionSorry this isn’t something you can do. But it does make sense. I’ll add this to the list of features for the next major version.
Forum: Plugins
In reply to: [Form Manager] [Plugin: WordPress Form Manager] Hide Fields not filled inThats something I’m adding to the plugin. You could make a custom summary template, and add a test to see if the value is blank.
Andy, this is actually fairly easy. The nicknames are paired with the automatically generated names ( I call them ‘unique names’ ) in the table wp_fm_items. So you would run the following query to find an item with the nickname “the-text”:
SELECT unique_name FROM wp_fm_items WHERE nickname = 'the-text'You can also grab the data table name for a form by slug, in this example “form-1”:
SELECT data_table FROM wp_fm_forms WHERE shortcode = 'form-1'The entries for ‘unique_name’ in wp_fm_items need to correspond to the field names in the data tables. This is why changing them manually didn’t work, but if you make sure you change these entries you can make the field names anything you want.
The unique names are generated on line 791 of db.php (as of 1.6.25), in a function called ‘getUniqueItemID’. The only argument, $type, is just the slug for the item type (something like ‘text’, ‘textarea’, ‘checkbox’ ), so you will have to include something extra in order to guarantee unique names are created.
I just posted the update.
Forum: Plugins
In reply to: [Form Manager] [Plugin: WordPress Form Manager] Form ConditionsIf you want you can e-mail me a link to the page with the broken form. My e-mail is campbell at campbellhoffman dot com.
There isn’t a simple way of doing this. Essentially you would have to hijack form manager and use it to build a calculator. This has been requested a few times, so I’m trying to think of a good way of doing simple things like what you are saying, but for now there isn’t really a solution.
I’ll have to play with that again. I went with onclick because onchange is not supported well for things other than text boxes in IE. Thanks for posting about this.
This is the problem with caching: a nonce is created for each form, and if the nonce expires before the cache is reloaded, then the nonce check will fail, and the submission is discarded. This is a ‘security feature’. I’ll add an option to disable the nonce checking and let you know when its posted.
For the Javascript, this is a bug. You have to check the ‘required’ option for any form item that can become required using conditions. This is okay, since the conditions will immediately hide the asterisk if the item is not required yet. The error is caused by there not being an ’em’ tag to show/hide.
Forum: Plugins
In reply to: [Form Manager] [Plugin: WordPress Form Manager] Condition email?Glad you found a solution. I was going to suggest that you hook into the submit action if you want to do special things with the data.
Forum: Plugins
In reply to: [Form Manager] [Plugin: WordPress Form Manager] Javascript not working..?I took a look at the generated code on the page you linked to, it does load the userscripts.js file. What is going wrong with the form?