You need to sign in to do that
Don't have an account?
Neeraj Sharma 103
If i checked the checkbox then custom fields will appear and if the checkbox is unchecked then custom field will not come
Hi
I am Beginner in Salesforce
I am trying to this Scenario but how to start i dont know
So Please Help Me I am new In Salesforce
My Question is:
my checkbox name is Display Amount when i clicked on checkbox then one custom field is appear field name is Amount and when unchecked the checkbox then field will be not appear
Please help me
Thanks in Advance
Neeraj Sharma
I am Beginner in Salesforce
I am trying to this Scenario but how to start i dont know
So Please Help Me I am new In Salesforce
My Question is:
my checkbox name is Display Amount when i clicked on checkbox then one custom field is appear field name is Amount and when unchecked the checkbox then field will be not appear
Please help me
Thanks in Advance
Neeraj Sharma
In the sample below, focus on the following -
Standard Component : actionSupport
Attributes : event, rerender, rendered
Firstly, rendering means process of displaying the output.
<apex:inputText value="{!Account.Domain_Name__c}" rendered="{!Account.Private__c ==true}"/>
means, the TextBox is displayed i.e rendered only when the checkbox is true.
<apex:actionSupport event="onchange" rerender="theBlock"/> means,
When the value of the checkbox changes, refresh only certain part of the page, and in this case it is called "theBlock"
for detailed explanation and understanding I would suggest you read
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_actionSupport.htm
All Answers
Thanks
Neeraj Sharma
This is the code but i dont understand flow of code so please explain using my requirement in this code
please reply fast ASAP
thanks
Neeraj Sharma
<apex:page >
<apex:pageBlock id="xxxpb1">
<apex:pageBlockSection>
<apex:actionRegion >
<apex:inputField id="xxxif1" value="{!Object.picklistfieldapiname1}" required="true" >
<apex:actionSupport event="onchange" rerender="xxxpb1" />
</apex:inputField>
</apex:actionRegion>
</apex:pageBlockSection>
<apex:pageBlockSection id="xxxpbs1" rendered="true">
<apex:inputField id="xxxif2" value="{!Object.Fieldtobedisplayed1}" rendered="{!IF(Object.picklistfieldapiname1 ='picklist value 1' || lead.Buyer_Type__c ='picklist value 2' ,true,false)}"/>
</apex:pageBlockSection>
<apex:pageBlockSection id="xxxpbs2" rendered="true">
<apex:inputField id="xxxif3" value="{!Object.Fieldtobedisplayed2}" rendered="{!IF(Object.picklistfieldapiname1 ='picklist value 3' || lead.Buyer_Type__c ='picklist value 4' ,true,false)}"/>
</apex:pageBlockSection>
</apex:PageBlock>
</apex:page>
In the sample below, focus on the following -
Standard Component : actionSupport
Attributes : event, rerender, rendered
Firstly, rendering means process of displaying the output.
<apex:inputText value="{!Account.Domain_Name__c}" rendered="{!Account.Private__c ==true}"/>
means, the TextBox is displayed i.e rendered only when the checkbox is true.
<apex:actionSupport event="onchange" rerender="theBlock"/> means,
When the value of the checkbox changes, refresh only certain part of the page, and in this case it is called "theBlock"
for detailed explanation and understanding I would suggest you read
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_actionSupport.htm
Now i am Understand the Difference between rerender, rendered and know about Event attribute
this sample code is useful for me
Thanku So Much