You need to sign in to do that
Don't have an account?
Piotr R Sobczak
After clicking save button page is refreshed without any error but field is not updated.
It is simplified example I was trying to do similar update from within an extension controller action without success...
Any idea ?
Thanks
Update custom object from site with input field
Hi,
I'm trying to update a field on a custom object on site.
I have sth like this
<apex:page standardController="Some_custom_object__c"> <apex:form> <apex:inputField value="{!Some_custom_object__c.status__c}"/> <apex:commandButton action="{!save}" value="save"/> </apex:form> </apex:page>
After clicking save button page is refreshed without any error but field is not updated.
It is simplified example I was trying to do similar update from within an extension controller action without success...
Any idea ?
Thanks
did you give an object context before updating and saving the field?
Like ....../apex/savetest?id=a081a0000016wbp
The other thing to check the valid values for status__c.
You don't have <apex:pageMessages/> so validation errors may not show up.
Thx
All Answers
Have you checked the permission for the custom object in the site's Public Access Setting?
Regards
Derek
did you give an object context before updating and saving the field?
Like ....../apex/savetest?id=a081a0000016wbp
The other thing to check the valid values for status__c.
You don't have <apex:pageMessages/> so validation errors may not show up.
Thx