You need to sign in to do that
Don't have an account?
Angel Montiel 6
Site is giving me an Authorization Required error
Hi everyone:
I created a Visualforce page that has a form within, and when I tested it worked fine. It let me create the records I wanted in the custom object I prevously created "Pedidos__c"; but when I assigned to a Site I created in my Developer Edition Org, it just won't let me create the records when I push the save button. I already checked that all permissions are given to the guest user, and I read some forums about the Authorization Required error, but nothing seems to help me.
Here's the code:
And here´s the site URL: http://pedidos-developer-edition.na30.force.com/pedidos/
Thank you very much.
I created a Visualforce page that has a form within, and when I tested it worked fine. It let me create the records I wanted in the custom object I prevously created "Pedidos__c"; but when I assigned to a Site I created in my Developer Edition Org, it just won't let me create the records when I push the save button. I already checked that all permissions are given to the guest user, and I read some forums about the Authorization Required error, but nothing seems to help me.
Here's the code:
<apex:page standardController="Pedido__c"> <apex:form > <apex:pageBlock > <apex:pageBlockSection > <apex:inputField value="{!Pedido__c.Name}"/> <apex:inputField value="{!Pedido__c.Descripci_n__c}"/> <apex:inputField value="{!Pedido__c.Fabricante__c}"/> <apex:inputField value="{!Pedido__c.Presentaci_n__c}"/> <apex:inputField value="{!Pedido__c.Cantidad__c}"/> <apex:commandButton action="{! save}" value="Save!"/> </apex:pageBlockSection> </apex:pageBlock> <apex:pageMessages /> </apex:form> </apex:page>
And here´s the site URL: http://pedidos-developer-edition.na30.force.com/pedidos/
Thank you very much.
Also, what happens on click of Save? Are you redirecting to some success page or something becuse it is creating the records successfully. I just created one with Id a0I36000004P3OK
All Answers
Also, what happens on click of Save? Are you redirecting to some success page or something becuse it is creating the records successfully. I just created one with Id a0I36000004P3OK
Thanks again.