I am running a competition whereby users must fill in a webform to enter. However, I am also using Facebook connect, and want the web form page to display, with the body and all the rest except for the form itself, unless the user is logged in. What is the best way to:
- Allow access to the webform if anonymous?
- Not allow the user to submit the form if anonymous?
- Hide the form and show my custom Facebook login button if the user is not logged in?
Point 1 is basically using Webforms the default way. And point 3 I can probably do by just editing the template of the node. But I am not sure how I can override the validation of the form to stop the user from actually entering the competition if he is not logged in.
Any ideas on what the best way is to do this?