
Single Entry
If user has previously submitted the form, it will be populated with their submitted responses.
- Go to “Formidable” -> “Forms” -> “Edit” (click the form title).
- Click on the “Settings” button at the top of the page and go to the “General”
- Optionally check the “Only logged-in users can see and submit form if used in a page or post” box.
- Check the “Allow Logged-in Users to Edit Previous Responses” box.
- Check the “Allow Only One Entry for Each” box and select “Logged-in User” from the drop-down.
- That’s it! Now when a user returns to previously submitted form,
they will be presented with your form already populated with their responses. When they update this form, they will be editing the previous response instead of creating a new one.
Multiple Entries
Form will be blank for a new entry, with a selection list to populate the form with stored data.
- Follow Steps 1-4 above.
- To add a list of the previously submitted entries, insert the
following shortcode on the same page or post as your form: [frm-entry-links id=x] . This will default to a list of entry creation dates linking to each entry. For customization of the entry list, see how to add a List of Entries to a Page
Add an Edit Link
[ frm-entry-edit-link ] shortcode
Usage
[ frm-entry-edit-link id=x label="Edit" page_id=4]
The shortcode [ frm-entry-edit-link id=x page_id=4 ] will return only the URL to the page of the form you want to edit.
example.com?p=4&entry=x&action=edit
Parameters
id – The ID of the entry to edit.
page_id – The ID of the WordPress page where your form has been embedded. Defaults to the page you insert the edit link on. Example: page_id=4. You can find the ID of your WordPress page by going to “Pages” -> “All Pages” and click to edit the page. The ID can be found in the address bar. 
label (optional) – Generate the link with the HTML by giving the link a name. Example: label=”Edit”
class (optional) – If you are using the label parameter, you can add an HTML class to the edit link to be used to style the link. Example: label=”Edit” class=”my_edit_class”
form_id (optional) – The ID of the form the entry comes from. Including this parameter will cut out a little processing time.
prefix (optional) – Advanced. If you want to edit the entry in place (as seen in the help desk), include the prefix of the containing div. The div should have an id like <div id=”frm_container_25″> where 25 is the entry ID. In a custom display, this would be <div id=”frm_container_14794″>. When clicked, this will replace everything inside of this div with the form to edit.
Unlike the delete link, the edit link should go outside of the container. This will allow the cancel link to show when in edit mode.
[ frm-entry-edit-link id=x label="Edit" cancel="Cancel" prefix="frm_container_"]<div id="frm_container_[ id ]">
Content here
</div>
cancel (optional) – If using the prefix parameter, you can change the label on the cancel link. Defaults to cancel=”Cancel”
[editlink] shortcode (For use inside of custom displays)
Usage
The [editlink] shortcode works the same as the [ frm-entry-edit-link ] shortcode described above, except it will automatically generate the id and form_id parameters.
[editlink location="front" label="Edit" page_id=4]
Parameters
location (optional) – Defaults to link to the entry on the back-end. If you would like a front-end link, include location=”front”.
page_id – See above
label (optional) – See above
class (optional) – See above
prefix (optional) – See above
cancel (optional) – See above
Single Field
Add a link to change the value of a single field in the entry.
[ frm-entry-update-field id=x field_id=y form_id=z label=Update class='' value="new value" message="Successfully updated" ]
Parameters
id – ID of the entry to change. Use id=14794 in a custom display
field_id – ID or key of the field to update
form_id (optional) – The ID of the form the field is from
label – The label of the link the user should click on to update the field. Defaults to “Update”.
class – Add any HTML classes to the link here
value – The value the field should be changed to when the link is clicked
message – The text seen after the field value is changed
Alternatively insert with PHP:
FrmProEntriesController::entry_update_field(array('id' => x, 'form_id' => 'z', 'label' => 'Update', 'class' => '', 'value' => 'new value', 'message' => 'Successfully Updated'));
Note: Remove the spaces around the brackets and replace ‘x’ with the form id in the shortcodes!
Editing Imported Entries
If you want users to be able to edit entries that were imported by a different user (e.g. Site Administrator) you need to either edit the wp_frm_items table and assign the correct WordPress user_id to the user_id and updated_by columns, or go through and edit each entry and select the correct user from the users drop-down.
February 2, 2012 at 7:12 am