Limiting form access to registered users
Using Captcha is one way to stop your forms being abused, and another is not to show them to "strangers". If you have a Joomla! site where members can register, it may be better to restrict some forms to signed-in members.
Joomla! and ChronoForms together make this very simple.
Getting ready
While it's unlikely that you'd want to limit your newsletter signup form to registered members, it would be a shame to abandon it now — so that's the form we'll work with here.
How to do it...
1. We're going to add a little PHP into the Form HTML, so open the form in the Form Editor and click the Form Code tab.
2. At the beginning of the Form HTML add this code snippet:
<?php if ( !$mainframe->isSite() ) { return; } // get the Joomla! User object $user = JFactory::getUser(); // if there isn't a user_id found end the form display. if ( $user->id == 0 ) { return; } ?>
3. Save the form in the Form Editor, log out of the front-end if you are logged in, and...