• John Braun
  • NEWBIE
  • 9 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 28
    Questions
  • 31
    Replies
Hello all,
I was wondering if someone could help me with controlling the font size of field labels in visualforce. Please see the below example of a picklist field I have in Visualforce, I'd like to increase the font size of the label. In my example below, I would be interested in increasing the font size of the label:

"1. How important was it to choose a vendor that could take your product through development to commercialization?"

Any help/direction is greatly appreciated, thank you!:

<apex:selectList value="{!Customer_Survey__c.Question_1__c}" multiselect="false" size="1"
                label="1.  How important was it to choose a vendor that could take your product through development to commercialization?">
         <apex:selectOption itemValue="--Select Option--" itemLabel="--Select Option--"/>
         <apex:selectOption itemValue="Not at all" itemLabel="1-Not at all"/>
         <apex:selectOption itemValue="Somewhat" itemLabel="2-Somewhat"/>
         <apex:selectOption itemValue="Average" itemLabel="3-Average"/>
         <apex:selectOption itemValue="High" itemLabel="4-High"/>
         <apex:selectOption itemValue="Critical" itemLabel="5-Critical"/>
         <apex:selectOption itemValue="N/A" itemLabel="Not Applicable"/>
      </apex:selectList>
Hello,
I'm not a developer but have tried to create a visualforce page, that uses a standard controller, that inserts a record. The record inserted is master-detail to the opportunity object in SFDC.

The VF page works and saves the record as desired but I'd like to display a message to the end user that says, "Record Successfully Saved".

I'm afraid I need to create a controller extension to to this, which I do not know how to do. AND, if I have write a controller extension, I'll also have to write a test class, which I also do not know how to do.

Is this a basic request, and if so, could someone help me create the controller extension and test class? Please see below my VF page:


<apex:page standardcontroller="Customer_Survey__c">

<apex:form >
       
 
<apex:pageBlock title="Customer Survey" mode="edit">
      <apex:pageBlockButtons >
        <apex:commandButton action="{!save}" value="Save"/>
        <apex:commandButton action="{!cancel}" value="Cancel"/>
      </apex:pageBlockButtons>
     
      <apex:pageBlockSection title="General" columns="2">
      <apex:inputField value="{!Customer_Survey__c.Opportunity_Name__c}"/>  
      <apex:outputField value="{!Customer_Survey__c.Client__c}"/>
      <apex:outputField value="{!Customer_Survey__c.Opportunity_Owner__c}"/>
      <apex:outputField value="{!Customer_Survey__c.Site__c}"/>
      <apex:outputField value="{!Customer_Survey__c.Close_Date__c}"/>
      <apex:outputField value="{!Customer_Survey__c.CreatedDate}"/>
     
       </apex:pageBlockSection>
     
      <apex:pageBlockSection title="Questions" columns="2">
     
 
     
        <apex:selectList value="{!Customer_Survey__c.Question_1__c}" multiselect="false" size="1"
                label="1.  How important was it to choose a vendor that could take your product through development to commercialization?">
         <apex:selectOption itemValue="--Select Option--" itemLabel="--Select Option--"/>
         <apex:selectOption itemValue="Not at all" itemLabel="1-Not at all"/>
         <apex:selectOption itemValue="Somewhat" itemLabel="2-Somewhat"/>
         <apex:selectOption itemValue="Average" itemLabel="3-Average"/>
         <apex:selectOption itemValue="High" itemLabel="4-High"/>
         <apex:selectOption itemValue="Critical" itemLabel="5-Critical"/>
         <apex:selectOption itemValue="N/A" itemLabel="Not Applicable"/>
      </apex:selectList>
     
    
     
      <apex:selectList value="{!Customer_Survey__c.Question_2__c}" multiselect="false" size="1"
                label="2.  Please rate how your prior experience working with Patheon in the past was an important factor in your decision, if applicable?">
         <apex:selectOption itemValue="--Select Option--" itemLabel="--Select Option--"/>
         <apex:selectOption itemValue="Not at all" itemLabel="1-Not at all"/>
         <apex:selectOption itemValue="Somewhat" itemLabel="2-Somewhat"/>
         <apex:selectOption itemValue="Average" itemLabel="3-Average"/>
         <apex:selectOption itemValue="High" itemLabel="4-High"/>
         <apex:selectOption itemValue="Critical" itemLabel="5-Critical"/>
         <apex:selectOption itemValue="N/A" itemLabel="Not Applicable"/>
      </apex:selectList>
     
     
     
      <apex:selectList value="{!Customer_Survey__c.Question_3__c}" multiselect="false" size="1"
                label="3.  How easy was it to reach Patheon with your original request? ">
         <apex:selectOption itemValue="--Select Option--" itemLabel="--Select Option--"/>
         <apex:selectOption itemValue="Difficult" itemLabel="1-Difficult"/>
         <apex:selectOption itemValue="Not Easy" itemLabel="2-Not Easy"/>
         <apex:selectOption itemValue="Average" itemLabel="3-Average"/>
         <apex:selectOption itemValue="Easy" itemLabel="4-Easy"/>
         <apex:selectOption itemValue="Very Easy" itemLabel="5-Very Easy"/>
         <apex:selectOption itemValue="N/A" itemLabel="Not Applicable"/>
      </apex:selectList>
     
     
     
       <apex:selectList value="{!Customer_Survey__c.Question_4__c}" multiselect="false" size="1"
                label="4.  How was our CDA process?">
         <apex:selectOption itemValue="--Select Option--" itemLabel="--Select Option--"/>
         <apex:selectOption itemValue="Poor" itemLabel="1-Poor"/>
         <apex:selectOption itemValue="Below Average" itemLabel="2-Below Average"/>
         <apex:selectOption itemValue="Acceptable" itemLabel="3-Acceptable"/>
         <apex:selectOption itemValue="Good" itemLabel="4-Good"/>
         <apex:selectOption itemValue="Excellent" itemLabel="5-Excellent"/>
         <apex:selectOption itemValue="N/A" itemLabel="Not Applicable"/>
      </apex:selectList>
     
     
     
      <apex:selectList value="{!Customer_Survey__c.Question_5__c}" multiselect="false" size="1"
                label="5.  How accurate were we in translating your RFP/project requirements into a formal proposal?">
         <apex:selectOption itemValue="--Select Option--" itemLabel="--Select Option--"/>
         <apex:selectOption itemValue="Poor" itemLabel="1-Poor"/>
         <apex:selectOption itemValue="Below Average" itemLabel="2-Below Average"/>
         <apex:selectOption itemValue="Acceptable" itemLabel="3-Acceptable"/>
         <apex:selectOption itemValue="Good" itemLabel="4-Good"/>
         <apex:selectOption itemValue="Excellent" itemLabel="5-Excellent"/>
         <apex:selectOption itemValue="N/A" itemLabel="Not Applicable"/>
      </apex:selectList>
     
    
     
      <apex:selectList value="{!Customer_Survey__c.Question_6__c}" multiselect="false" size="1"
                label="6.  How much did our proposal and subsequent revision turnaround time influence your vendor selection decision?">
         <apex:selectOption itemValue="--Select Option--" itemLabel="--Select Option--"/>
         <apex:selectOption itemValue="Not at all" itemLabel="1-Not at all"/>
         <apex:selectOption itemValue="Somewhat" itemLabel="2-Somewhat"/>
         <apex:selectOption itemValue="Average" itemLabel="3-Average"/>
         <apex:selectOption itemValue="High" itemLabel="4-High"/>
         <apex:selectOption itemValue="Critical" itemLabel="5-Critical"/>
         <apex:selectOption itemValue="N/A" itemLabel="Not Applicable"/>
      </apex:selectList>
     
     
     
      <apex:selectList value="{!Customer_Survey__c.Question_7__c}" multiselect="false" size="1"
                label="7.  How large a factor was facility location in making your final decision?">
         <apex:selectOption itemValue="--Select Option--" itemLabel="--Select Option--"/>
         <apex:selectOption itemValue="Not at all" itemLabel="1-Not at all"/>
         <apex:selectOption itemValue="Somewhat" itemLabel="2-Somewhat"/>
         <apex:selectOption itemValue="Average" itemLabel="3-Average"/>
         <apex:selectOption itemValue="High" itemLabel="4-High"/>
         <apex:selectOption itemValue="Critical" itemLabel="5-Critical"/>
         <apex:selectOption itemValue="N/A" itemLabel="Not Applicable"/>
      </apex:selectList>
     
    
     
      <apex:selectList value="{!Customer_Survey__c.Question_8__c}" multiselect="false" size="1"
                label="8.  How important was the site qualification/technical visit in your vendor selection?">
         <apex:selectOption itemValue="--Select Option--" itemLabel="--Select Option--"/>
         <apex:selectOption itemValue="Not at all" itemLabel="1-Not at all"/>
         <apex:selectOption itemValue="Somewhat" itemLabel="2-Somewhat"/>
         <apex:selectOption itemValue="Average" itemLabel="3-Average"/>
         <apex:selectOption itemValue="High" itemLabel="4-High"/>
         <apex:selectOption itemValue="Critical" itemLabel="5-Critical"/>
         <apex:selectOption itemValue="N/A" itemLabel="Not Applicable"/>
      </apex:selectList>
     
    
     
      <apex:selectList value="{!Customer_Survey__c.Question_9__c}" multiselect="false" size="1"
                label="9.  Please rate how important Patheon’s regulatory history was in making your final decision?">
         <apex:selectOption itemValue="--Select Option--" itemLabel="--Select Option--"/>
         <apex:selectOption itemValue="Not at all" itemLabel="1-Not at all"/>
         <apex:selectOption itemValue="Somewhat" itemLabel="2-Somewhat"/>
         <apex:selectOption itemValue="Average" itemLabel="3-Average"/>
         <apex:selectOption itemValue="High" itemLabel="4-High"/>
         <apex:selectOption itemValue="Critical" itemLabel="5-Critical"/>
         <apex:selectOption itemValue="N/A" itemLabel="Not Applicable"/>
      </apex:selectList>
     
     
      <apex:selectList value="{!Customer_Survey__c.Question_10__c}" multiselect="false" size="1"
                label="10.  Please rate how important price was when making your final vendor selection?">
         <apex:selectOption itemValue="--Select Option--" itemLabel="--Select Option--"/>
         <apex:selectOption itemValue="Not at all" itemLabel="1-Not at all"/>
         <apex:selectOption itemValue="Somewhat" itemLabel="2-Somewhat"/>
         <apex:selectOption itemValue="Average" itemLabel="3-Average"/>
         <apex:selectOption itemValue="High" itemLabel="4-High"/>
         <apex:selectOption itemValue="Critical" itemLabel="5-Critical"/>
         <apex:selectOption itemValue="N/A" itemLabel="Not Applicable"/>
      </apex:selectList>
     
      <apex:selectList value="{!Customer_Survey__c.Question_11__c}" multiselect="false" size="1"
                label="11.  Please rate the negotiation process for legal terms and conditions?">
         <apex:selectOption itemValue="--Select Option--" itemLabel="--Select Option--"/>
         <apex:selectOption itemValue="Poor" itemLabel="1-Poor"/>
         <apex:selectOption itemValue="Below Average" itemLabel="2-Below Average"/>
         <apex:selectOption itemValue="Acceptable" itemLabel="3-Acceptable"/>
         <apex:selectOption itemValue="Good" itemLabel="4-Good"/>
         <apex:selectOption itemValue="Excellent" itemLabel="5-Excellent"/>
         <apex:selectOption itemValue="N/A" itemLabel="Not Applicable"/>
      </apex:selectList>
     
      <br></br>
      <br></br>
      <br></br>
     
      <apex:inputField value="{!Customer_Survey__c.Feedback_Comments_Process_Improvements__c}"/>

  </apex:pageblocksection>

 
    </apex:pageBlock>


</apex:form>

</apex:page>
Hello!

I was hoping I could get an understanding of what options would be available to perform the following function in SFDC:

We would like to be able to conditionally show a custom button on a related list on our opportunity record. The custom button would only display on the quote related list on the opportunity page layout if certain conditions on the synced quote were TRUE.

Here is the catch:

We do not want to create a specific opprotunity record type and page layout for this button to do this action - the reason being that we will need to keep the record type and page layout the SAME and only have the button conditionally show or not show.

Thank you for any help on the above scenario!!
I am trying to auto sync, below code taken from internet but geting error , i know this is very simple but i am very new to SF 

trigger autosync on Opportunity (after insert, after update) {
parentOpp.SyncedQuoteId = quoteToSync.Id;
}

Error: Compile Error: Variable does not exist: parentOpp.SyncedQuoteId at line 2 column 1

Please advise.
Hey community,

I have a Onclick javascript button that works except for the fact that it will fail if the user inputs an "illegal" character. For example, if in one of the fields the Onclick Javacript button is evaluating has a "$" symbol, it will return an error prompt saying "Illegal token". This is not good! Thanks for any help!!

Button below:

if ( '{!Opportunity.Active__c}' == '')
{alert('In order to request a Quote, ensure that "Active" is populated on the Opportunity record.'); }

else if ('{!Opportunity.Rx_OTC__c}' == '')
{alert('In order to request a Quote, ensure that "Product Type" is populated on the Opportunity record.'); }

else if ('{!Opportunity.Reason_to_Outsource__c}' == '')
{alert('In order to request a Quote, you must ensure that "Reason to Outsource" is populated on the Opportunity record.'); }


else if ('{!Opportunity.Key_Criteria_for_Sucessful_Bid__c}' == '') {alert('In order to request a Quote, you must ensure that "Key Criteria for Successful Bid" is populated on the Opportunity record.'); }

else if ('{!Opportunity.Price_Sensitivity_Target_Pricing__c}' == '') {alert('In order to request a Quote, you must ensure that "Pricing Guidance & Funding Situation" is populated on the Opportunity record.'); }

else if ('{!Opportunity.Involves_BLS__c}' == '') {alert('In order to request a Quote, you must ensure that "Involves BLS" is populated on the Opportunity record.'); }


else { window.location = "/0Q0/e?&oppid={!Opportunity.Id}&ent=Quote&Name='Placeholder'&ent=Quote &RecordType={!Opportunity.Quote_Record_Type__c} &retURL=/{!Opportunity.Id}"; }

Hey Everyone,

 

I have an onclick javascript button that I'd like to require different fields to be populated before progressing to another screen.

 

I would like the button to have an or condition that considers record types. If the record typd is "Commercial", then require this set of questions. If the record type is "PDS", then require this set of questions. I'm not sure how to edit my existing code to have this condition. I also have it "bypassing" the field population requirements if the field, "existing commercial pricing quote" is set to "Yes".

 

Would anyone mind helping me understand how I would structure this code to require these fields depending on the record type? Thanks so much for any help!!!!!!

 

 

 

if ( '{!Opportunity.Existing_Commercial_Pricing_Quote__c}' == 'Yes')

{window.location = "/0Q0/e?&oppid={!Opportunity.Id}&ent=Quote&Name='Placeholder' &00NA0000004pyaC=1&ent=Quote &RecordType={!Opportunity.Quote_Record_Type__c} &retURL=/{!Opportunity.Id}"; }

 

else if( '{!Opportunity.Active__c}' == '')
{alert('In order to request a Quote, ensure that "Active" is populated on the Opportunity record.'); }

 

else if ('{!Opportunity.Rx_OTC__c}' == '')
{alert('In order to request a Quote, ensure that "Product Type" is populated on the Opportunity record.'); }

 

else if ('{!Opportunity.Project_Scope_for_Patheon__c}' == '') {alert('In order to request a Quote, you must ensure that "Project Scope for Patheon" is populated on the Opportunity record.'); }

 

else if ('{!Opportunity.Reason_to_Outsource__c}' == '')
{alert('In order to request a Quote, you must ensure that "Reason to Outsource" is populated on the Opportunity record.'); }


else if ('{!Opportunity.Key_Criteria_for_Sucessful_Bid__c}' == '') {alert('In order to request a Quote, you must ensure that "Key Criteria for Successful Bid" is populated on the Opportunity record.'); }

 

else if ('{!Opportunity.Indication__c}' == '') {alert('In order to request a Quote, you must ensure that "Indication" is populated on the Opportunity record.'); }

 

else if ('{!Opportunity.Current_PDS_Project__c}' == '') {alert('In order to request a Quote, you must ensure that "Current PDS Project" is populated on the Opportunity record.'); }

 

else if ('{!Opportunity.Pending_Launch_Date__c}' == '') {alert('In order to request a Quote, you must ensure that "Commercial Launch Date" is populated on the Opportunity record.'); }

 

else if ('{!Opportunity.Forecast_Volumes_and_Market_Potential__c}' == '') {alert('In order to request a Quote, you must ensure that "Forecast Volumes and Market Potential" is populated on the Opportunity record.'); }

 

else if ('{!Opportunity.Decision_timeline__c}' == '') {alert('In order to request a Quote, you must ensure that "Decision Timeline" is populated on the Opportunity record.'); }

 

else if ('{!Opportunity.Regulatory_Approval_Strategy__c}' == '') {alert('In order to request a Quote, you must ensure that "Regulatory Approval Strategy" is populated on the Opportunity record.'); }

 

else { window.location = "/0Q0/e?&oppid={!Opportunity.Id}&ent=Quote&Name='Placeholder' &00NA0000004pyaC=1&ent=Quote &RecordType={!Opportunity.Quote_Record_Type__c} &retURL=/{!Opportunity.Id}"; }

Hi everyone,

 

I keep getting an error with my onclick javascript button, "Unexpected identifier".

 

Would anyone mind taking a look at my syntax and letting me know what could be wrong? Thanks so much!!!!!!

 

if ( '{!Opportunity.Active__c}' == '') 

alert('In order to request a Quote, you must ensure that the fields, Active, Product Type, Current Phase, and Project Scope for Patheon are populated'); 

else if ('{!Opportunity.Rx_OTC__c}' == '') 
{alert('In order to request a Quote, you must ensure that the fields, Active, Product Type, Current Phase, and Project Scope for Patheon are populated'); 


else if ('{!Opportunity.Project_phase__c}' == '') 
{alert('In order to request a Quote, you must ensure that the fields, Active, Product Type, Current Phase, and Project Scope for Patheon are populated'); 


else if ('{!Opportunity.Description}' == '') 
{alert('In order to request a Quote, you must ensure that the fields, Active, Product Type, Current Phase, and Project Scope for Patheon are populated'); 


else 

window.location = "/0Q0/e?&oppid={!Opportunity.Id}&ent=Quote&Name="Placeholder - Do Not Edit" 
&00NA0000004pyaC=1&ent=Quote 
&RecordType={!Opportunity.Quote_Record_Type__c} 
&retURL=/{!Opportunity.Id}"; 
}

Hi Guys,

 

I understand it's native functionality within the quoting/quote sync functionality for when you have existing quote line items synced, if you create a new quote agains that opportunity, it copies the line items from the previous quote.

 

There's got to be a way around this, even if it involves code, right? Does anyone have experience with this type of business requirement or know how it could be accomplished? Thanks for the help!!!

Hello,

 

I am in Eclipse and have a new project where I've pulled all of the metadata of all reports and report folders.

 

I'm trying to delete certain report folders by right clicking on the report folder in Eclipse, selecting delete, and saying "yes" when the prompt asks if I also want to deploy changes to the server.

 

The problem is that I keep getting told by Eclipse that, "The server cannot delete component 'x' for the following reason: Before deleting this folder, you need to delete these reports from the folder and the recycle bin: "x""

 

So, I then try to open the path of the report folder in windows explorer, delete all reports inside, and then go back to Eclipse, right click on the report folder in question, and go Force.com -> Save to Server. Then I go into Salesforce.com to see if the action has deleted the reports, but they are all still there.

 

Is it still possible to mass delete reports/report folders from Salesforce.com with Eclipse? Thanks for your help!!

Hello,

 

I was curious if I could get assistance with creating a trigger that would update the quote status field for the synced quote based on if a checkbox on the opportunity is true or false.

 

If the opportunity checkbox is "TRUE", the trigger would update the quote status to "Pending RFP".

 

I would only have a single quote related to the opportunity at any point in time and it would always be "synced" using the native salesforce.com quote sync functionality. Would anyone be willing to assist? Thanks so much for any advice.

Here's what I'm trying to do:

 

During the flow, the user gets to a screen which uses a multi-select checkbox field and a dynamic choice that returns those account records meeting a specific criteria.

 

The user can select multiple accounts.

 

The flow then creates new records, one for each account selected,  in a custom object which has a lookup field to accounts.

 

How can I do this?

 

I've been trying to figure out a loop but so far haven't been successful.

 

Thanks

Hi All,

 

     I have a query in that one condition  is there, like ' where  isSyncing=true' .In my test class I am not able to assign value to that isSyncing field .Can any one suggest me how to solve the issue .

 

Thanks In adavce.

Situ