You need to sign in to do that
Don't have an account?
scamero2
Illegal view ID save.
I am trying to create a data entry page and I am having trouble with the save command button. When I enter values I am getting the following error
Illegal view ID save. The ID must begin with /
- I have the following VF code
<apex:page standardController="Plan_Holding__c">
<apex:Form >
<apex:pageBlock title="Plan Holding Information">
<apex:pageBlockButtons >
<apex:commandButton action="save" value="Save"/>
</apex:pageBlockButtons>
<apex:pageBlockSection >
<apex:inputField value="{!Plan_Holding__c.Plan__c}" >
</apex:inputField>
<apex:inputField value="{!Plan_Holding__c.As_of_Date__c}">
</apex:inputField>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:Form>
</apex:page>
<apex:Form >
<apex:pageBlock title="Plan Holding Information">
<apex:pageBlockButtons >
<apex:commandButton action="save" value="Save"/>
</apex:pageBlockButtons>
<apex:pageBlockSection >
<apex:inputField value="{!Plan_Holding__c.Plan__c}" >
</apex:inputField>
<apex:inputField value="{!Plan_Holding__c.As_of_Date__c}">
</apex:inputField>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:Form>
</apex:page>
The action for the commandButton should be "{!save}".
Also, please use 'src' to post code on these forums (gets rid of the smileys).