The Community forums are being phased out in favor of a new Slack group.
Add your email address below to get an invitation to join the community slack group

Slack Signup
Newsletter Optin
Help Desk

Delete entries without modification

Labels

This Discussion is public

Notifications

I am looking for a way to enable users to delete their own entries, without letting them modify. Here's my setup:

  • I am using Formidable as a way for users to sign-up for courses.
  • Each course has a separate Formidable form. When the user submits the form, he subscribes to that course.
  • All users are logged into the WP site, as subscribers.
  • I want users to be able to delete their entries, but not to edit them. I want a binary system: entry exists, or not.

Solution A: I tried to solve this using Formidable Views, to which I added a "delete" shortcode (without allowing front-end editing). This works fine, but only for Administrators or Editors. Maybe the Subscriber would need a specific capability to "delete one's own entries".

Solution B: I enabled the front-end editing option. Once this is enabled, the custom View works fine (the "delete" shortcode shows up for any user). But the downside is that on the actual form, when visiting an already submitted form, the user now sees both the "delete" and the "submit" button. I want to get rid of the "submit" button. I tried to edit the HTML code of the form, but would need a conditional shortcode that can tell if the form has already been submitted by the user – does it exist? Another approach would be to use CSS if the form is already submitted – but the markup seems to be exactly the same.

Any advice is welcome!

Hey Manuel,

I did something similar like this but i enabled front-end editing and only added a delete link and it worked fine. the shortcode i used was

[deletelink label="Delete" page_id=964]

and this worked fine. the page id is the page that the actual from is on that wordpress uses.

hope this helps.

Discussion closed.