• ArchanaR
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 0
    Replies

 

I want to render a button next to a field set conditionally based on field set value. How can I achieve that. For eg. in the code below, I want to render the button only if the column is "Bill To"

 

 

<apex:pageBlock id="systemDetails" title="System Details" >
                    <apex:pageBlockSection id="PBS" columns="2">
                         <apex:repeat value="{!$ObjectType.Opportunity.FieldSets.System_Information}" var="f">  
                             <apex:outputField value="{!Opportunity[f]}"/>
                             <apex:commandButton value="Copy Bill To" rendered="{!Opportunity[f]='Bill To'}" action="{!copyBillTo}"/>
                         </apex:repeat>
                    </apex:pageBlockSection>
       </apex:pageBlock>      
 
"Bill To" is a field in the fieldset. This is not working. Any idea what could be the issue here.              

 

Can I utilize or place a Add Tags section and use it inside a Custom VisualForce page?