This post explains how to use the Salesforce.com Web-to-Lead form when you are using NFP Starter Pack.
Surely you have seen the recommendations from Salesforce Foundation that you should not activate Person Accounts if you are using NFP Starter Pack (NPSP) for your Accounts and Contacts.
By default all Contacts stored in Salesforce.com need to be associated to an Account to be viewable by other users. This model is not applicable to many Contacts (supporters) in non-profit organisations. Salesforce NPSP has a solution for this model. To read more about the solutions click here.
Assuming you are using the 1×1 account model provided by NPSP you will not be able to use the out of the box Web-to-Lead form. This is because you will need to tweak the code to make the Account associated with the Contact consistent with the 1×1 account model that you have setup in NPSP. This way you will John Smith as the Account associated to John Smith contact record when you convert qualified leads in Salesforce.com.
To be able to do this once you generate the Web-to-Lead code in your Salesforce.com instance, add the following JavaScript code before the <head> tag of the web page that contains your form.
<script tye="text/javascript">
function check(){
var input = document.getElementById('company');
if(input.value.length == 0)
input.value = "self";
}
</script>
This piece of JavaScript code will set the value of the Company field in your form to “Self” upon submission if this field is left blank by your prospects.
You will then need to alter your form tag and add the onsubmit=”check()” so your <form> tag will look like this:
<form action="https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="POST" onsubmit="check()">
To read more about Salesforce Foundation and the Apps that your organisation can benefit from click here.