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
mallikammallikam 

cannot create a record through sites

I am unable to create a record through sites which is integrated with a visual force page. I have the read, create, edit permissions checked for the custom object on public access settings. I can create the records through the VF page that the sites refers to but I am unable to create the same through sites. Any help? Here is the controller code that is being called when I hit submit button and expect the record be created..

 

public PageReference confirm() {

if (this.request != null) {

 try {

       insert request; }

catch (system.DMLException e){

      ApexPages.addMessages(e);

 

       return null;

}

PageReference p = Page.submit;

p.setRedirect(true);

return p;

}

Best Answer chosen by Admin (Salesforce Developers) 
mallikammallikam

Actually, I realized that the records are being created but they are just not visible from the customobject

tab view, unless I go to the 'All' view..!!

Message Edited by mallikam on 07-22-2009 11:40 AM