• Frank Timmons
  • NEWBIE
  • 50 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 11
    Replies
I created a VF page that will be used on the SF homepage, a checkbox users will click whenever they are going to be out of the office.  I'm testing the function but when I place a checkmark in the field, the change isn't getting saved to my own user record.  I thought everything was set up correctly but it's not working as expected.  Can someone help?

<apex:page standardController="User" standardStylesheets="true">
   <apex:form >
      <apex:pageBlock mode="edit">
         <apex:pageBlockButtons >
            <apex:commandButton action="{!save}" value=" Save "> </apex:commandButton>
         </apex:pageBlockButtons>
      <apex:pageBlockSection columns="2">
         <apex:inputField value="{!User.Out_of_Office__c}"></apex:inputField>
      </apex:pageBlockSection>
      </apex:pageblock>
   </apex:form>
</apex:page>
I need someone to help me with my logic on sending an auto reponse to external customers when they send an email on an existing Case.

Scenario:
  • Customer Service Agent (CSA) is out of the office
  • A Client sends an email on an already open/existing case that is owned by the CSA who is currently out of the office
I want an email to be sent to the client indicating the CSA working their issue is out of the office and I'm having difficulty with the logic so I'm hoping someone out there has some suggestions or guidence.

Here is my logic
  1. Create a field on the User record, maybe a checkbox they can click when they are going to be out of the office.
  2. Create a similar (hidden) field on the Case record that will be updated via Workflow when the Agent sets the Out of Office field to "True"
  3. Now, a client sends an email on an existing case (open or closed, doesn't matter) and if the Out of Office field is "True", send an email to them.
Am I headed down the right path here or should I take a different approach?  I'm just not sure how to capture the event when a client sends an email on an already existing case.  And of course I also need to make sure I don't create an email loop that ends up crashing the system!

I'm still pondering my thinking and I'm going to start designing this but if anyone can chime in on how I'm thinking, I'd greatly appreciate it.
I'm in need of some assistance with getting the "Save" and "Edit" buttons to act how I need them to act on a VF Page.

Because SF limits you to just two columns in a Section, I had to create a VF page to create 3 columns.  But the problem I'm running into is what happnens after I click the "Save" or "Edit" buttons.  The VF Page is just one section on the Account Page Layout, but when I click either one of those buttons, the Section will refresh and display the entire Account Page Layout and not just the VF page.  What am I missing?  How does the code need to be written so it only shows the VF page?  I hope I'm explaining this clearly.

Here is the code:
<apex:page standardController="Account">
   <apex:form >
      <apex:pageBlock >
        
        <apex:pageBlockButtons >
                <apex:commandButton action="{!save}" value="Save"/>
                <apex:commandButton action="{!edit}" value="Edit"/>
                <apex:commandButton action="{!cancel}" value="Cancel" />
        </apex:pageBlockButtons>
                
                <apex:pageBlockSection columns="3" collapsible="true">
                                            
                <apex:outputLabel ><strong> </strong></apex:outputLabel>
                <apex:outputLabel ><strong><U> Modules </U></strong></apex:outputLabel>
                <apex:outputLabel ><strong><U> Champion </U></strong></apex:outputLabel>
                
                <apex:InputField value="{!Account.modulePO_504__c}"/>
                <apex:outputField value="{!Account.moduleActive_504__c}"/>
                <apex:outputLabel > Rudy </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_Cafeteria__c}"/>
                <apex:outputField value="{!Account.moduleActive_Cafeteria__c}"/>
                <apex:outputLabel > Jacquie, Charles </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_Gradebook__c}"/>
                <apex:outputField value="{!Account.moduleActive_Gradebook__c}"/>
                <apex:outputLabel > Linda C. </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_IRS__c}"/>
                <apex:outputField value="{!Account.moduleActive_IRS__c}"/>
                <apex:outputLabel > Rudy </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_LessonPlanner__c}"/>
                <apex:outputField value="{!Account.moduleActive_LessonPlanner__c}"/>
                <apex:outputLabel > Linda C. </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_Notification__c}"/>
                <apex:outputField value="{!Account.moduleActive_Notification__c}"/>
                <apex:outputLabel > Stacy </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_ParentPortal__c}"/>
                <apex:outputField value="{!Account.moduleActive_ParentPortal__c}"/>
                <apex:outputLabel > Stacy </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_StudentPortal__c}"/>
                <apex:outputField value="{!Account.moduleActive_StudentPortal__c}"/>
                <apex:outputLabel > Stacy </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_SGO__c}"/>
                <apex:outputField value="{!Account.moduleActive_SGO__c}"/>
                <apex:outputLabel > Lindsey, Tracy </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_SIS__c}"/>
                <apex:outputField value="{!Account.moduleActive_SIS__c}"/>
                <apex:outputLabel > Kim </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_SLIM__c}"/>
                <apex:outputField value="{!Account.moduleActive_SLIM__c}"/>
                <apex:outputLabel > Larry </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_SpecialEd__c}"/>
                <apex:outputField value="{!Account.moduleActive_SpecialEd__c}"/>
                <apex:outputLabel > Kenton, Kellee </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_StaffEvaluation__c}"/>
                <apex:outputField value="{!Account.moduleActive_StaffEvaluation__c}"/>
                <apex:outputLabel > Lindsey, Tracy </apex:outputLabel>
                
                </apex:pageBlockSection> 
        </apex:pageBlock> 
  </apex:form>
</apex:page>
I created a new section on the Account object that uses a Visualforce page because the out of the box sections are limited to two columns and I needed three.  But now users cannot modify the fields displayed in the section.  Is there somethiung I missed in the code?

<apex:page standardController="Account">
   <apex:form >
      <apex:pageBlock >
              <apex:pageBlockSection columns="3" collapsible="true">
                
                <apex:outputLabel ><strong> </strong></apex:outputLabel>
                <apex:outputLabel ><strong><U> Modules </U></strong></apex:outputLabel>
                <apex:outputLabel ><strong><U> Champion </U></strong></apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_504__c}"/>
                <apex:outputField value="{!Account.moduleActive_504__c}"/>
                <apex:outputLabel > Rudy </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_Cafeteria__c}"/>
                <apex:outputField value="{!Account.moduleActive_Cafeteria__c}"/>
                <apex:outputLabel > Jacquie, Charles </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_Gradebook__c}"/>
                <apex:outputField value="{!Account.moduleActive_Gradebook__c}"/>
                <apex:outputLabel > Linda C. </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_IRS__c}"/>
                <apex:outputField value="{!Account.moduleActive_IRS__c}"/>
                <apex:outputLabel > Rudy </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_LessonPlanner__c}"/>
                <apex:outputField value="{!Account.moduleActive_LessonPlanner__c}"/>
                <apex:outputLabel > Linda C. </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_Notification__c}"/>
                <apex:outputField value="{!Account.moduleActive_Notification__c}"/>
                <apex:outputLabel > Stacy </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_ParentPortal__c}"/>
                <apex:outputField value="{!Account.moduleActive_ParentPortal__c}"/>
                <apex:outputLabel > Stacy </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_StudentPortal__c}"/>
                <apex:outputField value="{!Account.moduleActive_StudentPortal__c}"/>
                <apex:outputLabel > Stacy </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_SGO__c}"/>
                <apex:outputField value="{!Account.moduleActive_SGO__c}"/>
                <apex:outputLabel > Lindsey, Tracy </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_SIS__c}"/>
                <apex:outputField value="{!Account.moduleActive_SIS__c}"/>
                <apex:outputLabel > Kim </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_SLIM__c}"/>
                <apex:outputField value="{!Account.moduleActive_SLIM__c}"/>
                <apex:outputLabel > Larry </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_SpecialEd__c}"/>
                <apex:outputField value="{!Account.moduleActive_SpecialEd__c}"/>
                <apex:outputLabel > Kenton, Kellee </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_StaffEvaluation__c}"/>
                <apex:outputField value="{!Account.moduleActive_StaffEvaluation__c}"/>
                <apex:outputLabel > Lindsey, Tracy </apex:outputLabel>
                
                </apex:pageBlockSection> 
        </apex:pageBlock> 
  </apex:form>
</apex:page>
I'm not a coder so I searched for how to accomplish getting a section to have 3 (or more) columns and I did find something but the code isn't working.  Can someone help?

<apex:page>
<apex:pageBlockSection title="Labor Breakdown" columns="3">
              
<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >Estimate1</apex:outputLabel>
<apex:inputField value="{!obj__c.Estimate__c}" style="width:80px"/>
</apex:pageBlockSectionItem>

<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >Hours1</apex:outputLabel>
<apex:inputField value="{!obj__c.Hours__c}" style="width:80px"/>
</apex:pageBlockSectionItem>
          
<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >Rate1</apex:outputLabel>
<apex:inputField value="{!obj__c.Rate__c}" style="width:80px"/>
</apex:pageBlockSectionItem>
</apex:pageBlockSection>
</apex:page>
I created a Visualforce page that includes a dashbaord I'd like dispayed on our homepage. I think I'm running to an problem with the HTML code but I'm not sure.  Everything looks like it's set up properly.

The Visualforce Page I created is named "Homepage_Dashboard".  I selected HTML when settng up the new dashboard component and used the code:

<iframe src="/apex/Homepage_Dashboard" frameborder="0" height="1000px" width="100%"></iframe>

When I assign the page, the only thing that's displayed is the code.  No dashboard.

I switched the component to a Visualforce Area and it worked.  I'd rather use HTML area though because it shows only the dashboard and no title, plus using HTML allows me to add more than one dashboard to the homepage if I choose to do so.  Any ideas why it's not working in HTML?
I created a VF page that will be used on the SF homepage, a checkbox users will click whenever they are going to be out of the office.  I'm testing the function but when I place a checkmark in the field, the change isn't getting saved to my own user record.  I thought everything was set up correctly but it's not working as expected.  Can someone help?

<apex:page standardController="User" standardStylesheets="true">
   <apex:form >
      <apex:pageBlock mode="edit">
         <apex:pageBlockButtons >
            <apex:commandButton action="{!save}" value=" Save "> </apex:commandButton>
         </apex:pageBlockButtons>
      <apex:pageBlockSection columns="2">
         <apex:inputField value="{!User.Out_of_Office__c}"></apex:inputField>
      </apex:pageBlockSection>
      </apex:pageblock>
   </apex:form>
</apex:page>
I'm in need of some assistance with getting the "Save" and "Edit" buttons to act how I need them to act on a VF Page.

Because SF limits you to just two columns in a Section, I had to create a VF page to create 3 columns.  But the problem I'm running into is what happnens after I click the "Save" or "Edit" buttons.  The VF Page is just one section on the Account Page Layout, but when I click either one of those buttons, the Section will refresh and display the entire Account Page Layout and not just the VF page.  What am I missing?  How does the code need to be written so it only shows the VF page?  I hope I'm explaining this clearly.

Here is the code:
<apex:page standardController="Account">
   <apex:form >
      <apex:pageBlock >
        
        <apex:pageBlockButtons >
                <apex:commandButton action="{!save}" value="Save"/>
                <apex:commandButton action="{!edit}" value="Edit"/>
                <apex:commandButton action="{!cancel}" value="Cancel" />
        </apex:pageBlockButtons>
                
                <apex:pageBlockSection columns="3" collapsible="true">
                                            
                <apex:outputLabel ><strong> </strong></apex:outputLabel>
                <apex:outputLabel ><strong><U> Modules </U></strong></apex:outputLabel>
                <apex:outputLabel ><strong><U> Champion </U></strong></apex:outputLabel>
                
                <apex:InputField value="{!Account.modulePO_504__c}"/>
                <apex:outputField value="{!Account.moduleActive_504__c}"/>
                <apex:outputLabel > Rudy </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_Cafeteria__c}"/>
                <apex:outputField value="{!Account.moduleActive_Cafeteria__c}"/>
                <apex:outputLabel > Jacquie, Charles </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_Gradebook__c}"/>
                <apex:outputField value="{!Account.moduleActive_Gradebook__c}"/>
                <apex:outputLabel > Linda C. </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_IRS__c}"/>
                <apex:outputField value="{!Account.moduleActive_IRS__c}"/>
                <apex:outputLabel > Rudy </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_LessonPlanner__c}"/>
                <apex:outputField value="{!Account.moduleActive_LessonPlanner__c}"/>
                <apex:outputLabel > Linda C. </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_Notification__c}"/>
                <apex:outputField value="{!Account.moduleActive_Notification__c}"/>
                <apex:outputLabel > Stacy </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_ParentPortal__c}"/>
                <apex:outputField value="{!Account.moduleActive_ParentPortal__c}"/>
                <apex:outputLabel > Stacy </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_StudentPortal__c}"/>
                <apex:outputField value="{!Account.moduleActive_StudentPortal__c}"/>
                <apex:outputLabel > Stacy </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_SGO__c}"/>
                <apex:outputField value="{!Account.moduleActive_SGO__c}"/>
                <apex:outputLabel > Lindsey, Tracy </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_SIS__c}"/>
                <apex:outputField value="{!Account.moduleActive_SIS__c}"/>
                <apex:outputLabel > Kim </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_SLIM__c}"/>
                <apex:outputField value="{!Account.moduleActive_SLIM__c}"/>
                <apex:outputLabel > Larry </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_SpecialEd__c}"/>
                <apex:outputField value="{!Account.moduleActive_SpecialEd__c}"/>
                <apex:outputLabel > Kenton, Kellee </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_StaffEvaluation__c}"/>
                <apex:outputField value="{!Account.moduleActive_StaffEvaluation__c}"/>
                <apex:outputLabel > Lindsey, Tracy </apex:outputLabel>
                
                </apex:pageBlockSection> 
        </apex:pageBlock> 
  </apex:form>
</apex:page>
I created a new section on the Account object that uses a Visualforce page because the out of the box sections are limited to two columns and I needed three.  But now users cannot modify the fields displayed in the section.  Is there somethiung I missed in the code?

<apex:page standardController="Account">
   <apex:form >
      <apex:pageBlock >
              <apex:pageBlockSection columns="3" collapsible="true">
                
                <apex:outputLabel ><strong> </strong></apex:outputLabel>
                <apex:outputLabel ><strong><U> Modules </U></strong></apex:outputLabel>
                <apex:outputLabel ><strong><U> Champion </U></strong></apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_504__c}"/>
                <apex:outputField value="{!Account.moduleActive_504__c}"/>
                <apex:outputLabel > Rudy </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_Cafeteria__c}"/>
                <apex:outputField value="{!Account.moduleActive_Cafeteria__c}"/>
                <apex:outputLabel > Jacquie, Charles </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_Gradebook__c}"/>
                <apex:outputField value="{!Account.moduleActive_Gradebook__c}"/>
                <apex:outputLabel > Linda C. </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_IRS__c}"/>
                <apex:outputField value="{!Account.moduleActive_IRS__c}"/>
                <apex:outputLabel > Rudy </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_LessonPlanner__c}"/>
                <apex:outputField value="{!Account.moduleActive_LessonPlanner__c}"/>
                <apex:outputLabel > Linda C. </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_Notification__c}"/>
                <apex:outputField value="{!Account.moduleActive_Notification__c}"/>
                <apex:outputLabel > Stacy </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_ParentPortal__c}"/>
                <apex:outputField value="{!Account.moduleActive_ParentPortal__c}"/>
                <apex:outputLabel > Stacy </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_StudentPortal__c}"/>
                <apex:outputField value="{!Account.moduleActive_StudentPortal__c}"/>
                <apex:outputLabel > Stacy </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_SGO__c}"/>
                <apex:outputField value="{!Account.moduleActive_SGO__c}"/>
                <apex:outputLabel > Lindsey, Tracy </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_SIS__c}"/>
                <apex:outputField value="{!Account.moduleActive_SIS__c}"/>
                <apex:outputLabel > Kim </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_SLIM__c}"/>
                <apex:outputField value="{!Account.moduleActive_SLIM__c}"/>
                <apex:outputLabel > Larry </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_SpecialEd__c}"/>
                <apex:outputField value="{!Account.moduleActive_SpecialEd__c}"/>
                <apex:outputLabel > Kenton, Kellee </apex:outputLabel>
                
                <apex:outputField value="{!Account.modulePO_StaffEvaluation__c}"/>
                <apex:outputField value="{!Account.moduleActive_StaffEvaluation__c}"/>
                <apex:outputLabel > Lindsey, Tracy </apex:outputLabel>
                
                </apex:pageBlockSection> 
        </apex:pageBlock> 
  </apex:form>
</apex:page>
I'm not a coder so I searched for how to accomplish getting a section to have 3 (or more) columns and I did find something but the code isn't working.  Can someone help?

<apex:page>
<apex:pageBlockSection title="Labor Breakdown" columns="3">
              
<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >Estimate1</apex:outputLabel>
<apex:inputField value="{!obj__c.Estimate__c}" style="width:80px"/>
</apex:pageBlockSectionItem>

<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >Hours1</apex:outputLabel>
<apex:inputField value="{!obj__c.Hours__c}" style="width:80px"/>
</apex:pageBlockSectionItem>
          
<apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
<apex:outputLabel >Rate1</apex:outputLabel>
<apex:inputField value="{!obj__c.Rate__c}" style="width:80px"/>
</apex:pageBlockSectionItem>
</apex:pageBlockSection>
</apex:page>