This shortcode is deprecated
*** BUG *** For some reason, there are times when other code executes and produces output *before* the shortcode executes, resulting in a "headers already sent" error. While this has not (yet) occurred on InsideLaw (but it has errored on LawMaint and LawMedia) I have replaced this shortcode with code in the functions.php file that adds an action to "init".
The effect is that *all* forms become "allowed to edit" if the options are enabled in the Formidable settings.
The "entry" key must not be just numeric, and there must be a user on the system named "anonymous"
Original documentation - needs updating!
The [allow_form_edit] shortcode allows for non-logged-in users to edit previous entries with the use of an entry key. An issue arose, however, that upon posting the edited data, the form is processed before this shortcode runs, resulting in an error message "you do not have permission..." The workaround is to log the visitor in as the user "anonymous" (in role "subscriber" and "owner" of events submitted by non-logged-in users), and to give this user the following settings:
can edit responses submitted by other users
Note: Do not select the "Limit number of form submissions" on the Settings / General tab, as this would have all visitors editing the same form (the one that belongs to "anonymous." The "Allow front-end editing..." setting automatically inserts a "User ID" field into the form if it is not already present.
Use
Place the short code before the shortcode to embed the tag:
[allow_form_edit] [formidable id=31 title=true]
In the settings tab of the form, you will need to "Redirect to URL" that has something like "?entry=[key]" in the query string of the receiving URL, and that page will need to be able to process that "key" - a page such as a TouchNet payment page that has the [touchnet_pay] shortcode embedded.
To return to the form page to edit, the URL must have the query string, "?frm_action=edit&entry=yvzq72" where "yvzq72" is the [key] value.
To create a view that will generate such links, embed the link in the Content area of the view:
<a href="/page_with_form/?frm_action=edit&entry=[key]"> edit </a>
Implemented in Shortcodes UI.