Login + auto redirects to a CF5 Form + make the form mandatory?

ITadminguy 10 Aug, 2017
If a user logs in, and they are automatically redirected to a CF5 Form upon login, is there a way to make the entire Form mandatory (not just mandatory fields) such that the submit button must be pressed before the user can navigate to another page on the site?

From time to time, I want to create a mandatory form (after the user has registered) that requires submit button of the form which shows immediately after login (via a redirect) to be pressed before the user can navigate away to another page.

Is there a PHP code that would require the submit button to be pressed, and redirect all other pages back to the form if the submit button is not pressed?

I know its a long shot.

Thanks in advance.

GreyHead 10 Aug, 2017
Hi itadminguy,

Not obviously and not with ChronoForms alone. What I have done in the past is to add have a form add a variable in the user session when it is successfully submitted. You can then add code in a module that is included on all pages that check for the variable and if it isn't found does the redirection. I'm not sure if it still exists but I think I used the Jumi component to add this code. I put it in a footer module - nothing is displayed but the PHP is sun on page load.

Bob
This topic is locked and no more replies can be posted.