check the login status before submit the form

By: jianliang yan | Asked: 10/03/2024
ForumsCategory: How-tocheck the login status before submit the form
jianliang yan asked 2 days ago
I currently have a situation where I want the form to be displayed to everyone, but when the submit button is clicked, it should check if the user is logged in. If not logged in, it should redirect to the login page. How can I solve this problem?
2 Answers
Rob LeVineRob LeVine answered 1 day ago
Victor Font answered 1 day ago

Be careful with implementing this. If the form data hasn't been saved and your redirect to a different page to force the user to log in, you may lose the new entry data after you redirect.

Bobby Clapp replied 1 day ago

This is almost certainly going to happen. Maybe you should also read through this: https://formidableforms.com/features/save-and-continue-partial-submissions/

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