function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ritikakhatri1.394602279912887E12ritikakhatri1.394602279912887E12 

Hi- is it possible to add some fields on event Detail page

I want to add some extra fields on event detail page based on input from new event page .Is it possble?? If yes then how
Subramani_SFDCSubramani_SFDC
you will add fields through activities......(Activity and events are same)
Under activities---->click activitycustomfields


then you will add  fields in events.



ritikakhatri1.394602279912887E12ritikakhatri1.394602279912887E12
But I want to add that custom field in case I pick a particular value from Type field. I have written a custom visualforce page overriding standard Event .Not able to figure out how to display that field on some specific condition 
Subramani_SFDCSubramani_SFDC
For example:

One way to do this would be to use partial-page refreshes in Visualforce.

Put both fields in the same column and use the "rendered" attribute to dynamically show/hide the field using an if-statement. Then you set up an AJAX onchange event handler for the delivery__c field using the actionSupport tag. This will basically listen for that field to change then refresh the table on the page. Each time this is refreshed, your if statements will be re-evaluated and result in showing one of the two fields in that column.

<apex:pageBlockTable id="mytable" value="{!showRecord}" var="item">
  <apex:column headerValue="Delivery">
    <apex:actionRegion>       
      <apex:inputField value="{!item.delivery__c}">
        <apex:actionSupport event="onchange" reRender="mytable">
      </apex:inputField>
    </apex:actionRegion>
  </apex:column>
  <apex:column headerValue="Delivery Type">
    <apex:inputField rendered="{!item.delivery__c='Road'}" value="{!item.road__c}"/>
    <apex:inputField rendered="{!item.delivery__c='Rail'}" value="{!item.rail__c}"/>
  </apex:column>
</apex:pageBlockTable>



Regards,
Subramani
Trinay technology solutions