I am currently designing a page layout and it is not finalized. I am trying to make it so that only when out of warranty is checked that two fields will pop up. Those two fields are Payment and Payment Received. They do pop up originally, however after you enter the value and save it disappears. It looks like below. It starts like this (which is what I want):
and then it becomes like this after you click save.
.
Is there a way to make the fields render without using visual force? I assume I have this current problem because I am currently using an apex form. But according to the error I received, buttons are only allowed if it is a form. If I have to use visual force is there a way for that section to not disappear?
Here is my code for the Visual Force part:
<apex:page standardController="Service_Case__c" >
<apex:form >
<apex:pageBlock title="Service Case Summary">
<apex:pageBlockSection title="Service Case Stuff" columns="2">
<apex:outputField value="{!Service_Case__c.Name}"/>
<apex:outputField value="{!Service_Case__c.LGFProduct__c}"/>
</apex:pageBlockSection>
<apex:pageBlockSection title="Payment" columns="2" rendered="{!if(Service_Case__c.Out_of_Warranty__c, true, false)}">
<apex:outputField value="{!Service_Case__c.Payment__c}"/>
<apex:inlineEditSupport disabled="false"/>
<apex:outputField value="{!Service_Case__c.Received_Payment__c }"/>
<apex:inlineEditSupport disabled="false"/>
</apex:pageBlockSection>
<apex:pageBlockButtons >
<apex:commandButton action="{!save}" value="Save"/>
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
</apex:page>
Also this might count as another question and if needed I will separate it, but for some reason LGFProduct never shows up. It is in a look-up relationship with Service Case. If I add the extension of LGFProduct will it appear? Formerly it used to show the ID I believe but now it shows nothing.