function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Mandy_in_MNMandy_in_MN 

WebForms Errors, Not saving to a Lead, except in Preview

I installed CMSFoce 2 following the Guide instructions.  I created a web form to collect leads.  When I click "save & preview," it works correctly.  However, when I test the web form outside of preview-mode, I'm redirected to an error page and my lead data does not save.  Has anyone seen this before?  I've tried recreating the web form and page multiple times.  

 

I have also given this site rights to create leads.  Are there any other rights or preferences I'm missing?  

 

- Mandy

Best Answer chosen by Admin (Salesforce Developers) 
Mandy_in_MNMandy_in_MN

Finally figured this out:  Page 6 of the The CMSForce2 installation instructions tell you to set the URL rewriter class to "FriendlyURLs."  But this messes up everything if you're not going to use FriendlyURLs.  For my purpose, the default URLs are good, but from reading the instructions, I didn't pick up that this setting was optional.  I left the URL rewriter class blank, and now my web form is working just fine.