Hello,

Is there a standard way to require site visitors to fill out a form before viewing a node's content? After searching I haven't been able to find any related posts about this topic. Maybe it's commonly referred to under different terminology? "Gated nodes" or "restricted nodes"...

I've built this functionality before using custom fields and node templates but wanted to know if there is some standard method of restricting access to a node's content until someone submits a form.

For example, there is a node and a visitor must submit a form which gets sent to SalesForce before being able to view the node content. Custom fields have been added to the node type with a check box to "Gate" (require form submission before viewing) the node and a custom field for a SalesForce campaign ID. Then the node--node_type.tpl.php file checks for this "gated" field, and if set, it shows a form instead of the content until the form is submitted and a cookie is set.

Maybe this is the best / simplest way to require visitors to fill out a form before viewing a node's content? I'm planning to do this with more content so wanted to know if there was a simpler method, or maybe this is the simplest. This would be for anonymous visitors, not users.

Thanks!