How to use delete link

By: Robert Cabiya-an | Asked: 10/30/2024
ForumsCategory: General questionsHow to use delete link
Robert Cabiya-an asked 2 weeks ago
how to use delete link with url parameters ?   in Settings of forms there is actions and notifications and confirmation.  In confirmation there is Redirect page. Can we do this also in delete link ?   [deletelink label="Delete"]    <---- i want to include the url parameters so that after delete it will refresh the page with url parameters.       Please help   Thanks.  
Attachments
Bobby Clapp replied 2 weeks ago

Would you not be able to utilize a "delete" action?

https://formidableforms.com/knowledgebase/using-add-form-actions/

1 Answers
Rob LeVineRob LeVine answered 2 weeks ago
Here's one way. Add the delete link to the view. Display the view. Hold your cursor over the delete link and copy the URL. Now you know what the URL should look like, e.g., https:///wp-admin/admin-ajax.php?action=frm_entries_destroy&entry=&redirect=&nonce=. Create a custom shortcode that returns a URL with the entry id, view id and nonce dynamically created (entry id and view id passed to the shortcode as parameters and the nonce is added via wp_nonce_url) and where you'd add your other parameters. Finally, in the view, replace the [deletelink] with your shortcode.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right