You need to sign in to do that
Don't have an account?
sfdc@isha.ax1814
action status onchange sections should display
Hi Team,
I have a Req that on cas estandard page based on the status value need to display the different fieds.
Status='Working'--> Text1 Text 2 fields should display.
Status='Escalate'--> Text3 Text4 fields should display.
On save of this values it should be saved on the case . Please suggest me how can acheive this.
My Current page:
<apex:pageBlock >
<apex:pageblockSection >
<apex:inputfield value="{!Case.Status}">
<apex:actionSupport event="onchange" reRender="theForm" />
</apex:inputField>
<apex:inputField value="{!Case.NewText1__c}" rendered="{!IF(Case.Status == 'Escalated',true,false)}"/>
<apex:inputField value="{!Case.New_Text2__c}" rendered="{!IF(Case.Status == 'Escalated',true,false)}" />
<apex:inputField value="{!Case.Working_1__c}" rendered="{!IF(Case.Status == 'Working',true,false)}" />
<apex:inputField value="{!Case.Working_2__c}" rendered="{!IF(Case.Status == 'Working',true,false)}" />
</apex:pageblockSection>
<apex:pageblockbuttons >
<apex:commandButton value="save" action="{!save}"/>
</apex:pageblockbuttons>
</apex:pageBlock>
</apex:form>
</apex:page>
Please help me on save and any changes on the code.
Regards,
Isha
I have a Req that on cas estandard page based on the status value need to display the different fieds.
Status='Working'--> Text1 Text 2 fields should display.
Status='Escalate'--> Text3 Text4 fields should display.
On save of this values it should be saved on the case . Please suggest me how can acheive this.
My Current page:
<apex:pageBlock >
<apex:pageblockSection >
<apex:inputfield value="{!Case.Status}">
<apex:actionSupport event="onchange" reRender="theForm" />
</apex:inputField>
<apex:inputField value="{!Case.NewText1__c}" rendered="{!IF(Case.Status == 'Escalated',true,false)}"/>
<apex:inputField value="{!Case.New_Text2__c}" rendered="{!IF(Case.Status == 'Escalated',true,false)}" />
<apex:inputField value="{!Case.Working_1__c}" rendered="{!IF(Case.Status == 'Working',true,false)}" />
<apex:inputField value="{!Case.Working_2__c}" rendered="{!IF(Case.Status == 'Working',true,false)}" />
</apex:pageblockSection>
<apex:pageblockbuttons >
<apex:commandButton value="save" action="{!save}"/>
</apex:pageblockbuttons>
</apex:pageBlock>
</apex:form>
</apex:page>
Please help me on save and any changes on the code.
Regards,
Isha
Greetings to you!
Below is the sample code which I have tested in my org and it is working fine. Kindly modify the code as per your requirement.
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas
Please try the below code and let me know if this works for you. If still need modifications do let me know.
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi
Is there any other way to acheive my requirement with out coding/vfpage.
My Req: On the Case standard page based on the status change fields should display given like above?
If with vfpage is my solution it should be inline vfpage. After saving iam getting like below. Please guide me.
Regards,
Isha