-
ChatterFeed
-
0Best Answers
-
0Likes Received
-
0Likes Given
-
6Questions
-
10Replies
call task object in visual force page
I have this code
<apex:pageBlock title="Contacts"> <apex:form > <apex:commandButton value="New Contact" onclick="window.open('/setup/ui/recordtypeselect.jsp?ent=Contact&retURL=%2F{!account.id}&save_new_url=%2F003%2Fe%3FretURL%3D%252F{!account.id}%26accid%3D{!account.id}');"/> <apex:pageBlockTable title="Contacts" value="{!account.contacts}" var="item"> <apex:column > <apex:outputLink value="/{!item.id}" target="_blank">{!item.name}</apex:outputLink> </apex:column> <apex:column value="{!item.Title}"/> <apex:column value="{!item.Email}"/> <apex:column value="{!item.Primary_Contact__c}"/> <apex:column value="{!item.Authorized_User__c}"/> <apex:column value="{!item.Inactive__c}"/> </apex:pageBlockTable>
which allows the user to add a new Contact from VF page.
I would like to be able to add the ability for the user to create a new Task
I am VERY new to Apex and VF - so I am wondering , can I modify the above code to allow me to do that?
Thanks!!
<apex:pageBlock title="Contacts"> <apex:form > <apex:commandButton value="New Contact" onclick="window.open('/setup/ui/recordtypeselect.jsp?ent=Contact&retURL=%2F{!account.id}&save_new_url=%2F003%2Fe%3FretURL%3D%252F{!account.id}%26accid%3D{!account.id}');"/> <apex:pageBlockTable title="Contacts" value="{!account.contacts}" var="item"> <apex:column > <apex:outputLink value="/{!item.id}" target="_blank">{!item.name}</apex:outputLink> </apex:column> <apex:column value="{!item.Title}"/> <apex:column value="{!item.Email}"/> <apex:column value="{!item.Primary_Contact__c}"/> <apex:column value="{!item.Authorized_User__c}"/> <apex:column value="{!item.Inactive__c}"/> </apex:pageBlockTable>
which allows the user to add a new Contact from VF page.
I would like to be able to add the ability for the user to create a new Task
I am VERY new to Apex and VF - so I am wondering , can I modify the above code to allow me to do that?
Thanks!!
- KellyKanches
- June 17, 2016
- Like
- 0
New to APEX. Building VF page and can't view custom object output fields and text is ugly (see images of preview)
Here is my code
<apex:page tabStyle="Account" standardController="Account">
<style >
p {
font-size:16px;
}
.beenWorkingOut {
font-size:16px;
}
.paraCrunch {
margin-left:10%;
margin-right:10%;
}
a {
text-decoration:none;
}
</style>
<apex:pageBlock title="AB Welcome Call/Enrollment Call ">
<apex:pageBlockSection title="Summary" columns="2">
<apex:outputField value="{!Account.CustNumber__c}"/>
<apex:outputField value="{!Account.Phone}"/>
<apex:outputField value="{!Account.Name}"/>
<apex:pageBlockSectionItem />
<apex:pageBlockSectionItem />
<apex:pageBlockSectionItem />
<apex:outputLink onClick="window.open('/{!account.id}')">(View Account)</apex:outputLink>
</apex:pageBlockSection>
<apex:pageBlockTable title="Modules" value="{!account.Modules__r}" var="item">
<apex:outputField value="{!item.Pre_Launch_Date__c}"/>
<apex:outputField value="{!item.Base_Product__c}"/>
<apex:outputField value="{!item.White_Labeled_As__c}"/>
<apex:outputField value="{!item.Status__c}"/>
<apex:outputField value="{!item.Recordings_Complete__c}"/>
</apex:pageBlockTable>
</apex:pageBlock>
<apex:form >
<span style="float:right">
<apex:commandButton action="{!save}" value="Save" />
<apex:commandLink onclick="return confirm('Are you sure you want to cancel? All changes will be lost!');" action="{!cancel}" value="cancel"/>
</span>
<br />
<br />
<br />
<span style="float:right; font-size:12px; color:grey;">version 1.0 - revised 2015.04.07</span>
<apex:pageBlock title="Details">
<apex:pageBlockSection title="Introduction and Product Review" columns="1">
<p class="paraCrunch">
When Amerisource Bergen
<p class="paraCrunch"></p>
My name is
<b>{!$User.FirstName} {!$User.LastName}</b> I am calling from Prescribe Wellness on behalf of AmerisourceBergen. May I please speak with {!Account.PW_Champion__c}?
</p>
<p class="paraCrunch">
Hi {!Account.PW_Champion__c}, this is
<b>{!$User.FirstName} {!$User.LastName}</b> from Prescribe Wellness. The reason for my call is today is that as a member of Elevate’s Advanced Features you will receive the Patient Engagement Center provided by Prescribe Wellness. The Patient Engagement Center is a tool that will help you address medication adherence, star ratings, and patient loyalty. We provide you the tools needed to take action on your pharmacy data.
</p>
</apex:pageBlockSection>
<apex:pageBlockSection title="Account Details" columns="1">
<p class="paraCrunch">
<ul class="beenWorkingOut">
<li>
<a id="two1" href="#" style="color:black;" onclick="setColorById('two1','green');return false;">Review The Solutions They are Receiving</a>
</li>
</ul>
</p>
<apex:pageBlockSectionItem />
<apex:inputField value="{!Account.Name}"/>
<apex:inputField value="{!account.CustNumber__c}"/>
<apex:inputField value="{!Account.Phone}"/>
<apex:inputField value="{!Account.Groups__c}"/>
<apex:outputLink onClick="window.open('/{!account.id}')">(View Account)</apex:outputLink>
<apex:pageBlockSectionItem />
<apex:pageBlockTable title="Modules" value="{!account.Modules__r}" var="item">
<apex:column value="{!item.Pre_Launch_Date__c}"/>
<apex:column value="{!item.Base_Product__c}"/>
<apex:column value="{!item.White_Labeled_As__c}"/>
<apex:column value="{!item.Status__c}"/>
<apex:column value="{!item.Recordings_Complete__c}"/>
</apex:pageblocktable>
</apex:pageBlockSection>
<apex:pageBlockSection title="Collect Forms" columns="1">
<p class="paraCrunch">
<ul class="beenWorkingOut">
Online enrollment form and data form (if applicable):
The first step in setting up your Patient Engagement Center is completing the online enrollment form.
Direct them to prescribewellness.com/elevate and have them click on their dispensing system if listed. If not, click on All Other Dispensing Systems.
Ask if they have multiple locations that are Elevate with Advanced Features. If so, have them fill out the
<apex:outputLink value="http://developer.salesforce.com/">Enrollment Form</apex:outputLink> for each location.
Create a case to set up a hierarchy – include all account numbers in the case.
*If they are not able to fill out the form on the phone, please send the
<apex:outputLink value="https://na18.salesforce.com/00X12000001rQCZ?setupid=CommunicationTemplatesEmail">email template</apex:outputLink>
that contains the link to prescribewellness.com/elevate.
</ul>
</p>
<apex:pageBlockSectionItem />
</apex:pageblocksection>
<apex:pageBlockSection title="Review Account Details" columns="1">
<p class="paraCrunch">
I would like to confirm your pharmacy information and ask you a few questions.
<ul class="beenWorkingOut">
<li>
<a id="four1" href="#" style="color:black;" onclick="setColorById('four1','green');return false;">Verify the account information: </a>
</li>
<apex:pageBlockSectionItem />
<apex:inputField value="{!Account.Pharmacy_Email__c}"/>
<apex:inputField value="{!account.Phone}"/>
<apex:inputField value="{!Account.Fax}"/>
<apex:inputField value="{!Account.NCPDP__c}"/>
<apex:inputField value="{!Account.NPI__c}"/>
<apex:inputField value="{!Account.Web_Input_DSP__c}"/>
<apex:inputField value="{!Account.Primary_Contact__c}"/>
<apex:inputField value="{!Account.PW_Champion__c}"/>
<apex:inputField value="{!Account.PW_Champion_Email__c}"/>
<p class="paraCrunch">
When did the Pharmacy open?
</p>
<apex:inputField value="{!Account.DEA_Start_Date__c}"/>
</ul>
</p>
<p class="paraCrunch">
Ask the Pre-Launch Meeting questions.
</p>
</apex:pageBlockSection>
<apex:pageBlockSection title="Obtaining the pharmacie's data:" columns="1">
<p class="paraCrunch">
<ul class="beenWorkingOut">
<li>
<a id="five1" href="#" style="color:black;" onclick="setColorById('five1','green');return false;">If automated data extraction</a>
</li>
<p class="paraCrunch">
o For your dispensing system we receive your pharmacy’s data directly from the dispensing system. Once we have received your pharmacy’s data, we will send you an activation email. One of our trainers will then call you to schedule a time for a one-on-one training.
</p>
<li>
<a id="five2" href="#" style="color:black;" onclick="setColorById('five2','green');return false;">If manual data extraction is required</a>
</li>
<p class="paraCrunch">
o For your dispensing system, we will need to schedule a meeting with our data team so they can establish the connection with your dispensing system. We establish the connection through an application called TeamViewer.
</p>
<p class="paraCrunch">
o Schedule the integration meeting in Salesforce. Note that it can be anyone in the pharmacy who we conduct the integration meeting with.
</p>
<p class="paraCrunch">
o A member of our data team will contact you on [date and time] to conduct the integration meeting.
</p>
<p class="paraCrunch">
o After the integration meeting is complete and we have your pharmacy data, we will send you an activation email. One of our trainers will then call you to schedule a time for a one-on-one training.
</p>
</ul>
</p>
<apex:pageBlockSectionItem />
</apex:pageBlockSection>
<apex:pageBlockSection title="University Training" columns="1">
<p class="paraCrunch">
(please refer to the welcome email for login instructions or resend the welcome email)
Prescribe Wellness has developed a series of online training courses designed to maximize your experience navigating your new tools. Please refer to the university courses at any time for further instruction on how to use Prescribe Wellness.
</p>
</apex:pageBlockSection>
<apex:pageBlockSection title="Wrap-Up" columns="1">
<p class="paraCrunch">
That's everything I had for you today. Thank you so much for taking the time to speak with me today.
</p>
<p class="paraCrunch">
Thank you so much for taking the time to speak with me today. We are excited to get started and look forward to working with you. Are there any questions about the program that you have for me at this time?
</p>
<apex:inputField value="{!Account.Welcome_Call_Completed__c}"/>
<p class="paraCrunch">
Always log your calls in Salesforce!
</p>
</apex:pageBlockSection>
</apex:pageBlock>
<span style="float:right">
<apex:commandButton action="{!save}" value="Save" />
<apex:commandLink onclick="return confirm('Are you sure you want to cancel? All changes will be lost!');" action="{!cancel}" value="cancel"/>
</span>
<br />
<br />
</apex:form>
<br />
<script type="text/javascript">
function confirmCancel() {
return confirm('Are you sure you want to cancel? All changes will be lost!');
}
function addressCopy(b0, b1, b2, b3, s0, s1, s2, s3) {
// Copy billing fields to shipping fields
document.getElementById(s0).value = document.getElementById(b0).value;
document.getElementById(s1).value = document.getElementById(b1).value;
document.getElementById(s2).value = document.getElementById(b2).value;
document.getElementById(s3).value = document.getElementById(b3).value;
// No form submission
return false;
}
function setColorById(id,sColor) {
var elem;
if (document.getElementById) {
if (elem=document.getElementById(id)) {
if (elem.style) {
elem.style.color=sColor;
return 1; // success
}
}
}
return 0; // failure
}
</script>
</apex:page>
and when I preview my page - I can't see the output fields from my custom object and the text formatting is ugly (see screen shots)
Can someone help me identify what I am going wrong?
<apex:page tabStyle="Account" standardController="Account">
<style >
p {
font-size:16px;
}
.beenWorkingOut {
font-size:16px;
}
.paraCrunch {
margin-left:10%;
margin-right:10%;
}
a {
text-decoration:none;
}
</style>
<apex:pageBlock title="AB Welcome Call/Enrollment Call ">
<apex:pageBlockSection title="Summary" columns="2">
<apex:outputField value="{!Account.CustNumber__c}"/>
<apex:outputField value="{!Account.Phone}"/>
<apex:outputField value="{!Account.Name}"/>
<apex:pageBlockSectionItem />
<apex:pageBlockSectionItem />
<apex:pageBlockSectionItem />
<apex:outputLink onClick="window.open('/{!account.id}')">(View Account)</apex:outputLink>
</apex:pageBlockSection>
<apex:pageBlockTable title="Modules" value="{!account.Modules__r}" var="item">
<apex:outputField value="{!item.Pre_Launch_Date__c}"/>
<apex:outputField value="{!item.Base_Product__c}"/>
<apex:outputField value="{!item.White_Labeled_As__c}"/>
<apex:outputField value="{!item.Status__c}"/>
<apex:outputField value="{!item.Recordings_Complete__c}"/>
</apex:pageBlockTable>
</apex:pageBlock>
<apex:form >
<span style="float:right">
<apex:commandButton action="{!save}" value="Save" />
<apex:commandLink onclick="return confirm('Are you sure you want to cancel? All changes will be lost!');" action="{!cancel}" value="cancel"/>
</span>
<br />
<br />
<br />
<span style="float:right; font-size:12px; color:grey;">version 1.0 - revised 2015.04.07</span>
<apex:pageBlock title="Details">
<apex:pageBlockSection title="Introduction and Product Review" columns="1">
<p class="paraCrunch">
When Amerisource Bergen
<p class="paraCrunch"></p>
My name is
<b>{!$User.FirstName} {!$User.LastName}</b> I am calling from Prescribe Wellness on behalf of AmerisourceBergen. May I please speak with {!Account.PW_Champion__c}?
</p>
<p class="paraCrunch">
Hi {!Account.PW_Champion__c}, this is
<b>{!$User.FirstName} {!$User.LastName}</b> from Prescribe Wellness. The reason for my call is today is that as a member of Elevate’s Advanced Features you will receive the Patient Engagement Center provided by Prescribe Wellness. The Patient Engagement Center is a tool that will help you address medication adherence, star ratings, and patient loyalty. We provide you the tools needed to take action on your pharmacy data.
</p>
</apex:pageBlockSection>
<apex:pageBlockSection title="Account Details" columns="1">
<p class="paraCrunch">
<ul class="beenWorkingOut">
<li>
<a id="two1" href="#" style="color:black;" onclick="setColorById('two1','green');return false;">Review The Solutions They are Receiving</a>
</li>
</ul>
</p>
<apex:pageBlockSectionItem />
<apex:inputField value="{!Account.Name}"/>
<apex:inputField value="{!account.CustNumber__c}"/>
<apex:inputField value="{!Account.Phone}"/>
<apex:inputField value="{!Account.Groups__c}"/>
<apex:outputLink onClick="window.open('/{!account.id}')">(View Account)</apex:outputLink>
<apex:pageBlockSectionItem />
<apex:pageBlockTable title="Modules" value="{!account.Modules__r}" var="item">
<apex:column value="{!item.Pre_Launch_Date__c}"/>
<apex:column value="{!item.Base_Product__c}"/>
<apex:column value="{!item.White_Labeled_As__c}"/>
<apex:column value="{!item.Status__c}"/>
<apex:column value="{!item.Recordings_Complete__c}"/>
</apex:pageblocktable>
</apex:pageBlockSection>
<apex:pageBlockSection title="Collect Forms" columns="1">
<p class="paraCrunch">
<ul class="beenWorkingOut">
Online enrollment form and data form (if applicable):
The first step in setting up your Patient Engagement Center is completing the online enrollment form.
Direct them to prescribewellness.com/elevate and have them click on their dispensing system if listed. If not, click on All Other Dispensing Systems.
Ask if they have multiple locations that are Elevate with Advanced Features. If so, have them fill out the
<apex:outputLink value="http://developer.salesforce.com/">Enrollment Form</apex:outputLink> for each location.
Create a case to set up a hierarchy – include all account numbers in the case.
*If they are not able to fill out the form on the phone, please send the
<apex:outputLink value="https://na18.salesforce.com/00X12000001rQCZ?setupid=CommunicationTemplatesEmail">email template</apex:outputLink>
that contains the link to prescribewellness.com/elevate.
</ul>
</p>
<apex:pageBlockSectionItem />
</apex:pageblocksection>
<apex:pageBlockSection title="Review Account Details" columns="1">
<p class="paraCrunch">
I would like to confirm your pharmacy information and ask you a few questions.
<ul class="beenWorkingOut">
<li>
<a id="four1" href="#" style="color:black;" onclick="setColorById('four1','green');return false;">Verify the account information: </a>
</li>
<apex:pageBlockSectionItem />
<apex:inputField value="{!Account.Pharmacy_Email__c}"/>
<apex:inputField value="{!account.Phone}"/>
<apex:inputField value="{!Account.Fax}"/>
<apex:inputField value="{!Account.NCPDP__c}"/>
<apex:inputField value="{!Account.NPI__c}"/>
<apex:inputField value="{!Account.Web_Input_DSP__c}"/>
<apex:inputField value="{!Account.Primary_Contact__c}"/>
<apex:inputField value="{!Account.PW_Champion__c}"/>
<apex:inputField value="{!Account.PW_Champion_Email__c}"/>
<p class="paraCrunch">
When did the Pharmacy open?
</p>
<apex:inputField value="{!Account.DEA_Start_Date__c}"/>
</ul>
</p>
<p class="paraCrunch">
Ask the Pre-Launch Meeting questions.
</p>
</apex:pageBlockSection>
<apex:pageBlockSection title="Obtaining the pharmacie's data:" columns="1">
<p class="paraCrunch">
<ul class="beenWorkingOut">
<li>
<a id="five1" href="#" style="color:black;" onclick="setColorById('five1','green');return false;">If automated data extraction</a>
</li>
<p class="paraCrunch">
o For your dispensing system we receive your pharmacy’s data directly from the dispensing system. Once we have received your pharmacy’s data, we will send you an activation email. One of our trainers will then call you to schedule a time for a one-on-one training.
</p>
<li>
<a id="five2" href="#" style="color:black;" onclick="setColorById('five2','green');return false;">If manual data extraction is required</a>
</li>
<p class="paraCrunch">
o For your dispensing system, we will need to schedule a meeting with our data team so they can establish the connection with your dispensing system. We establish the connection through an application called TeamViewer.
</p>
<p class="paraCrunch">
o Schedule the integration meeting in Salesforce. Note that it can be anyone in the pharmacy who we conduct the integration meeting with.
</p>
<p class="paraCrunch">
o A member of our data team will contact you on [date and time] to conduct the integration meeting.
</p>
<p class="paraCrunch">
o After the integration meeting is complete and we have your pharmacy data, we will send you an activation email. One of our trainers will then call you to schedule a time for a one-on-one training.
</p>
</ul>
</p>
<apex:pageBlockSectionItem />
</apex:pageBlockSection>
<apex:pageBlockSection title="University Training" columns="1">
<p class="paraCrunch">
(please refer to the welcome email for login instructions or resend the welcome email)
Prescribe Wellness has developed a series of online training courses designed to maximize your experience navigating your new tools. Please refer to the university courses at any time for further instruction on how to use Prescribe Wellness.
</p>
</apex:pageBlockSection>
<apex:pageBlockSection title="Wrap-Up" columns="1">
<p class="paraCrunch">
That's everything I had for you today. Thank you so much for taking the time to speak with me today.
</p>
<p class="paraCrunch">
Thank you so much for taking the time to speak with me today. We are excited to get started and look forward to working with you. Are there any questions about the program that you have for me at this time?
</p>
<apex:inputField value="{!Account.Welcome_Call_Completed__c}"/>
<p class="paraCrunch">
Always log your calls in Salesforce!
</p>
</apex:pageBlockSection>
</apex:pageBlock>
<span style="float:right">
<apex:commandButton action="{!save}" value="Save" />
<apex:commandLink onclick="return confirm('Are you sure you want to cancel? All changes will be lost!');" action="{!cancel}" value="cancel"/>
</span>
<br />
<br />
</apex:form>
<br />
<script type="text/javascript">
function confirmCancel() {
return confirm('Are you sure you want to cancel? All changes will be lost!');
}
function addressCopy(b0, b1, b2, b3, s0, s1, s2, s3) {
// Copy billing fields to shipping fields
document.getElementById(s0).value = document.getElementById(b0).value;
document.getElementById(s1).value = document.getElementById(b1).value;
document.getElementById(s2).value = document.getElementById(b2).value;
document.getElementById(s3).value = document.getElementById(b3).value;
// No form submission
return false;
}
function setColorById(id,sColor) {
var elem;
if (document.getElementById) {
if (elem=document.getElementById(id)) {
if (elem.style) {
elem.style.color=sColor;
return 1; // success
}
}
}
return 0; // failure
}
</script>
</apex:page>
and when I preview my page - I can't see the output fields from my custom object and the text formatting is ugly (see screen shots)
Can someone help me identify what I am going wrong?
- KellyKanches
- June 10, 2016
- Like
- 0
Error: Digital_Suite_Checklist line 121, column 12: XML document structures must start and end within the same entity Error Error: XML document structures must start and end within the same entity.
Can someone help me with how to close out this page?
I am very new to VF and APEX and don't have a clue what I am doing wrong.
Thanks!
<apex:page>
<apex:page: standardcontroller="School__c" tabstyle="School__c">
<style >
p {
font-size:16px;
}
.beenWorkingOut {
font-size:16px;
}
.paraCrunch {
margin-left:10%;
margin-right:10%;
}
a {
text-decoration:none;
}
</style>
<apex:pageBlock title="MealViewer Initial Call to Customer Checklist">
<apex:pageBlockSection title="Summary" columns="2">
<apex:outputField value="{!school.Phone}"/>
<apex:outputField value="{!school.Name}"/>
<apex:pageBlockSectionItem />
<apex:pageBlockSectionItem />
<apex:pageBlockSectionItem />
<apex:outputLink onClick="window.open('/{!school.id}')">(View School)</apex:outputLink>
</apex:pageBlockSection>
</apex:pageBlock>
<apex:form >
<span style="float:right">
<apex:commandButton action="{!save}" value="Save" />
<apex:commandLink onclick="return confirm('Are you sure you want to cancel? All changes will be lost!');" action="{!cancel}" value="cancel"/>
</span>
<br /><br /><br />
<span style="float:right; font-size:12px; color:grey;">version 1.0 - revised 2015.04.07</span>
<apex:pageBlock title="Details">
<apex:pageBlockSection title="Introduction" columns="2">
<p class="paraCrunch">
My name is <b>{!$User.FirstName} {!$User.LastName}</b> and I'm going to be taking care of you as your Onboarding Specialist here at MealViewer! Do you have a few minutes?
</p>
<p class="paraCrunch">
<ul class="beenWorkingOut">
<li>Call Summary</li>
<ul>
<li><a id="one1" href="#" style="color:black;" onclick="setColorById('one1','green');return false;">Ask the Questions</a></li>
<li><a id="one2" href="#" style="color:black;" onclick="setColorById('one2','green');return false;">Complete the Form</a></li>
<li><a id="one3" href="#" style="color:black;" onclick="setColorById('one3','green');return false;">Thank the Customer</a></li>
</ul>
</ul>
</p>
</apex:pageBlockSection>
<apex:pageBlockSection title="School Details" columns="2">
<p class="paraCrunch">
<ul class="beenWorkingOut">
<li><a id="two1" href="#" style="color:black;" onclick="setColorById('two1','green');return false;">Review All Account Details</a></li>
<li><a id="two2" href="#" style="color:black;" onclick="setColorById('two2','green');return false;">Verify Current Listed Contacts</a></li>
</ul>
</p>
<apex:pageBlockSectionItem />
<apex:inputField value="{!school.How_Many_Total_Wired_Players__c}"/>
<apex:inputField value="{!school.How_Many_Total_Wireless_Players__c}"/>
<apex:inputField value="{!school.How_Many_Total_Displays__c}"/>
<apex:inputField value="{!school.How_Many_Additional_Digital_Suites__c}"/>
<apex:inputField value="{!school.How_Many_Total_Mounts__c}"/>
<apex:inputField value="{!school.How_Many_Total_Splitters__c}"/>
<apex:inputField value="{!school.Length_between_Displays_for_splitters__c}"/>
<apex:inputField value="{!school.Location_of_Player_in_School__c}"/>
<apex:inputField value="{!school.Make_Model_Retrofitted_Displays__c}"/>
<apex:inputField value="{!school.Menu_Planning_Software_Currently_Used__c}"/>
<apex:inputField value="{!school.Make_Model_Retrofitted_Displays__c}"/>
<apex:inputField value="{!school.Do_They_Have_Different_Serving_Lines__c}"/>
<apex:inputField value="{!school.Serving_Lines_per_Player__c}"/>
<apex:inputField value="{!school.Serving_Line_Name_s__c}"/>
<apex:inputField value="{!school.Cycle__c}"/>
<apex:inputField value="{!school.Cycle_Week__c}"/>
<apex:inputField value="{!school.Customer_Confirmed_Installation_Date__c}"/>
<apex:inputField value="{!school.Desired_Launch_Date__c}"/>
<apex:inputField value="{!school.Installation_Date_Time__c}"/>
<apex:inputField value="{!school.Installation_Area_Type__c}"/>
<apex:inputField value="{!school.Make_Model_Retrofitted_Displays__c}"/>
<apex:inputField value="{!school.Display_Size__c}"/>
</apex:pageBlockSection>
<apex:pageBlockSection title="Contact Information" columns="1">
<p class="paraCrunch">
<ul class="beenWorkingOut">
<apex:inputField value="{!school.Maintenance_Contact__c}"/>
<apex:inputField value="{!school.IT_Contact__c}"/>
</ul>
</p>
</apex:pageBlockSection>
<apex:pageBlockSection title="Wrap-Up" columns="1">
<p class="paraCrunch">
Thank you so much for taking the time to meet with me today. We are so excited to get started and look forward to working with you. Are there any questions about the program that you have for me at this time?
</p>
<p class="paraCrunch">
Again, my name is <b>{!$User.FirstName}</b>, and if you have any questions, please contact me at <b>803-380-5538</b>. Or, you can email me at <b>{!$User.Email}</b>.
</p>
</apex:pageBlockSection>
</apex:pageBlock>
<span style="float:right">
<apex:commandButton action="{!save}" value="Save" />
<apex:commandLink onclick="return confirm('Are you sure you want to cancel? All changes will be lost!');" action="{!cancel}" value="cancel"/>
</span><br /><br />
<apex:page>
I am very new to VF and APEX and don't have a clue what I am doing wrong.
Thanks!
<apex:page>
<apex:page: standardcontroller="School__c" tabstyle="School__c">
<style >
p {
font-size:16px;
}
.beenWorkingOut {
font-size:16px;
}
.paraCrunch {
margin-left:10%;
margin-right:10%;
}
a {
text-decoration:none;
}
</style>
<apex:pageBlock title="MealViewer Initial Call to Customer Checklist">
<apex:pageBlockSection title="Summary" columns="2">
<apex:outputField value="{!school.Phone}"/>
<apex:outputField value="{!school.Name}"/>
<apex:pageBlockSectionItem />
<apex:pageBlockSectionItem />
<apex:pageBlockSectionItem />
<apex:outputLink onClick="window.open('/{!school.id}')">(View School)</apex:outputLink>
</apex:pageBlockSection>
</apex:pageBlock>
<apex:form >
<span style="float:right">
<apex:commandButton action="{!save}" value="Save" />
<apex:commandLink onclick="return confirm('Are you sure you want to cancel? All changes will be lost!');" action="{!cancel}" value="cancel"/>
</span>
<br /><br /><br />
<span style="float:right; font-size:12px; color:grey;">version 1.0 - revised 2015.04.07</span>
<apex:pageBlock title="Details">
<apex:pageBlockSection title="Introduction" columns="2">
<p class="paraCrunch">
My name is <b>{!$User.FirstName} {!$User.LastName}</b> and I'm going to be taking care of you as your Onboarding Specialist here at MealViewer! Do you have a few minutes?
</p>
<p class="paraCrunch">
<ul class="beenWorkingOut">
<li>Call Summary</li>
<ul>
<li><a id="one1" href="#" style="color:black;" onclick="setColorById('one1','green');return false;">Ask the Questions</a></li>
<li><a id="one2" href="#" style="color:black;" onclick="setColorById('one2','green');return false;">Complete the Form</a></li>
<li><a id="one3" href="#" style="color:black;" onclick="setColorById('one3','green');return false;">Thank the Customer</a></li>
</ul>
</ul>
</p>
</apex:pageBlockSection>
<apex:pageBlockSection title="School Details" columns="2">
<p class="paraCrunch">
<ul class="beenWorkingOut">
<li><a id="two1" href="#" style="color:black;" onclick="setColorById('two1','green');return false;">Review All Account Details</a></li>
<li><a id="two2" href="#" style="color:black;" onclick="setColorById('two2','green');return false;">Verify Current Listed Contacts</a></li>
</ul>
</p>
<apex:pageBlockSectionItem />
<apex:inputField value="{!school.How_Many_Total_Wired_Players__c}"/>
<apex:inputField value="{!school.How_Many_Total_Wireless_Players__c}"/>
<apex:inputField value="{!school.How_Many_Total_Displays__c}"/>
<apex:inputField value="{!school.How_Many_Additional_Digital_Suites__c}"/>
<apex:inputField value="{!school.How_Many_Total_Mounts__c}"/>
<apex:inputField value="{!school.How_Many_Total_Splitters__c}"/>
<apex:inputField value="{!school.Length_between_Displays_for_splitters__c}"/>
<apex:inputField value="{!school.Location_of_Player_in_School__c}"/>
<apex:inputField value="{!school.Make_Model_Retrofitted_Displays__c}"/>
<apex:inputField value="{!school.Menu_Planning_Software_Currently_Used__c}"/>
<apex:inputField value="{!school.Make_Model_Retrofitted_Displays__c}"/>
<apex:inputField value="{!school.Do_They_Have_Different_Serving_Lines__c}"/>
<apex:inputField value="{!school.Serving_Lines_per_Player__c}"/>
<apex:inputField value="{!school.Serving_Line_Name_s__c}"/>
<apex:inputField value="{!school.Cycle__c}"/>
<apex:inputField value="{!school.Cycle_Week__c}"/>
<apex:inputField value="{!school.Customer_Confirmed_Installation_Date__c}"/>
<apex:inputField value="{!school.Desired_Launch_Date__c}"/>
<apex:inputField value="{!school.Installation_Date_Time__c}"/>
<apex:inputField value="{!school.Installation_Area_Type__c}"/>
<apex:inputField value="{!school.Make_Model_Retrofitted_Displays__c}"/>
<apex:inputField value="{!school.Display_Size__c}"/>
</apex:pageBlockSection>
<apex:pageBlockSection title="Contact Information" columns="1">
<p class="paraCrunch">
<ul class="beenWorkingOut">
<apex:inputField value="{!school.Maintenance_Contact__c}"/>
<apex:inputField value="{!school.IT_Contact__c}"/>
</ul>
</p>
</apex:pageBlockSection>
<apex:pageBlockSection title="Wrap-Up" columns="1">
<p class="paraCrunch">
Thank you so much for taking the time to meet with me today. We are so excited to get started and look forward to working with you. Are there any questions about the program that you have for me at this time?
</p>
<p class="paraCrunch">
Again, my name is <b>{!$User.FirstName}</b>, and if you have any questions, please contact me at <b>803-380-5538</b>. Or, you can email me at <b>{!$User.Email}</b>.
</p>
</apex:pageBlockSection>
</apex:pageBlock>
<span style="float:right">
<apex:commandButton action="{!save}" value="Save" />
<apex:commandLink onclick="return confirm('Are you sure you want to cancel? All changes will be lost!');" action="{!cancel}" value="cancel"/>
</span><br /><br />
<apex:page>
- KellyKanches
- May 05, 2016
- Like
- 0
(Beginner Developer building VF Page) Need Code to reference custom object field
Hi all,
I am a beginner developer (really an admin but learning to build VF pages)
I built a page for the Account Object that I now need to move to a Custom Object and reference the Custom Object (School__C) fields.
I cloned the Account page I built and changed out the Account wth School...I must be doing something wrong because I get the error
"School Does Not Exist"
Can someone help?
Code below
<apex:page tabStyle="School__c" standardController="School">
<style >
p {
font-size:16px;
}
.beenWorkingOut {
font-size:16px;
}
.paraCrunch {
margin-left:10%;
margin-right:10%;
}
a {
text-decoration:none;
}
</style>
<apex:pageBlock title="MealViewer Initial Call to Customer Checklist">
<apex:pageBlockSection title="Summary" columns="2">
<apex:outputField value="{!School.Phone}"/>
<apex:outputField value="{!School.Name}"/>
<apex:pageBlockSectionItem />
<apex:pageBlockSectionItem />
<apex:pageBlockSectionItem />
<apex:outputLink onClick="window.open('/{!school.id}')">(View School)</apex:outputLink>
</apex:pageBlockSection>
</apex:pageBlock>
<apex:form >
<span style="float:right">
<apex:commandButton action="{!save}" value="Save" />
<apex:commandLink onclick="return confirm('Are you sure you want to cancel? All changes will be lost!');" action="{!cancel}" value="cancel"/>
</span>
<br /><br /><br />
<span style="float:right; font-size:12px; color:grey;">version 1.0 - revised 2015.04.07</span>
<apex:pageBlock title="Details">
<apex:pageBlockSection title="Introduction" columns="2">
<p class="paraCrunch">
My name is <b>{!$User.FirstName} {!$User.LastName}</b> and I'm going to be taking care of you as your Onboarding Specialist here at MealViewer! Do you have a few minutes?
</p>
<p class="paraCrunch">
<ul class="beenWorkingOut">
<li>Call Summary</li>
<ul>
<li><a id="one1" href="#" style="color:black;" onclick="setColorById('one1','green');return false;">Ask the Questions</a></li>
<li><a id="one2" href="#" style="color:black;" onclick="setColorById('one2','green');return false;">Complete the Form</a></li>
<li><a id="one3" href="#" style="color:black;" onclick="setColorById('one3','green');return false;">Thank the Customer</a></li>
</ul>
</ul>
</p>
</apex:pageBlockSection>
<apex:pageBlockSection title="School Details" columns="2">
<p class="paraCrunch">
<ul class="beenWorkingOut">
<li><a id="two1" href="#" style="color:black;" onclick="setColorById('two1','green');return false;">Review All Account Details</a></li>
<li><a id="two2" href="#" style="color:black;" onclick="setColorById('two2','green');return false;">Verify Current Listed Contacts</a></li>
</ul>
</p>
<apex:pageBlockSectionItem />
<apex:inputField value="{!school.How_Many_Total_Wired_Players__c}"/>
<apex:inputField value="{!school.How_Many_Total_Wireless_Players__c}"/>
<apex:inputField value="{!school.How_Many_Total_Displays__c}"/>
<apex:inputField value="{!school.How_Many_Additional_Digital_Suites__c}"/>
<apex:inputField value="{!school.How_Many_Total_Mounts__c}"/>
<apex:inputField value="{!school.How_Many_Total_Splitters__c}"/>
<apex:inputField value="{!school.Length_between_Displays_for_splitters__c}"/>
<apex:inputField value="{!school.Location_of_Player_in_School__c}"/>
<apex:inputField value="{!school.Make_Model_Retrofitted_Displays__c}"/>
<apex:inputField value="{!school.Menu_Planning_Software_Currently_Used__c}"/>
<apex:inputField value="{!school.Make_Model_Retrofitted_Displays__c}"/>
<apex:inputField value="{!school.Do_They_Have_Different_Serving_Lines__c}"/>
<apex:inputField value="{!school.Serving_Lines_per_Player__c}"/>
<apex:inputField value="{!school.Serving_Line_Name_s__c}"/>
<apex:inputField value="{!school.Cycle__c}"/>
<apex:inputField value="{!school.Cycle_Week__c}"/>
<apex:inputField value="{!school.Customer_Confirmed_Installation_Date__c}"/>
<apex:inputField value="{!school.Desired_Launch_Date__c}"/>
<apex:inputField value="{!school.Installation_Date_Time__c}"/>
<apex:inputField value="{!school.Installation_Area_Type__c}"/>
<apex:inputField value="{!school.Make_Model_Retrofitted_Displays__c}"/>
<apex:inputField value="{!school.Display_Size__c}"/>
</apex:pageBlockSection>
<apex:pageBlockSection title="Contact Information" columns="1">
<p class="paraCrunch">
<ul class="beenWorkingOut">
<apex:inputField value="{!school.Maintenance_Contact__c}"/>
<apex:inputField value="{!school.IT_Contact__c}"/>
</ul>
</p>
</apex:pageBlockSection>
<apex:pageBlockSection title="Wrap-Up" columns="1">
<p class="paraCrunch">
Thank you so much for taking the time to meet with me today. We are so excited to get started and look forward to working with you. Are there any questions about the program that you have for me at this time?
</p>
<p class="paraCrunch">
Again, my name is <b>{!$User.FirstName}</b>, and if you have any questions, please contact me at <b>803-380-5538</b>. Or, you can email me at <b>{!$User.Email}</b>.
</p>
</apex:pageBlockSection>
</apex:pageBlock>
<span style="float:right">
<apex:commandButton action="{!save}" value="Save" />
<apex:commandLink onclick="return confirm('Are you sure you want to cancel? All changes will be lost!');" action="{!cancel}" value="cancel"/>
</span><br /><br />
</apex:form>
<br />
<script type="text/javascript">
function confirmCancel() {
return confirm('Are you sure you want to cancel? All changes will be lost!');
}
function addressCopy(b0, b1, b2, b3, s0, s1, s2, s3) {
// Copy billing fields to shipping fields
document.getElementById(s0).value = document.getElementById(b0).value;
document.getElementById(s1).value = document.getElementById(b1).value;
document.getElementById(s2).value = document.getElementById(b2).value;
document.getElementById(s3).value = document.getElementById(b3).value;
// No form submission
return false;
}
function setColorById(id,sColor) {
var elem;
if (document.getElementById) {
if (elem=document.getElementById(id)) {
if (elem.style) {
elem.style.color=sColor;
return 1; // success
}
}
}
return 0; // failure
}
</script>
</apex:page>
I am a beginner developer (really an admin but learning to build VF pages)
I built a page for the Account Object that I now need to move to a Custom Object and reference the Custom Object (School__C) fields.
I cloned the Account page I built and changed out the Account wth School...I must be doing something wrong because I get the error
"School Does Not Exist"
Can someone help?
Code below
<apex:page tabStyle="School__c" standardController="School">
<style >
p {
font-size:16px;
}
.beenWorkingOut {
font-size:16px;
}
.paraCrunch {
margin-left:10%;
margin-right:10%;
}
a {
text-decoration:none;
}
</style>
<apex:pageBlock title="MealViewer Initial Call to Customer Checklist">
<apex:pageBlockSection title="Summary" columns="2">
<apex:outputField value="{!School.Phone}"/>
<apex:outputField value="{!School.Name}"/>
<apex:pageBlockSectionItem />
<apex:pageBlockSectionItem />
<apex:pageBlockSectionItem />
<apex:outputLink onClick="window.open('/{!school.id}')">(View School)</apex:outputLink>
</apex:pageBlockSection>
</apex:pageBlock>
<apex:form >
<span style="float:right">
<apex:commandButton action="{!save}" value="Save" />
<apex:commandLink onclick="return confirm('Are you sure you want to cancel? All changes will be lost!');" action="{!cancel}" value="cancel"/>
</span>
<br /><br /><br />
<span style="float:right; font-size:12px; color:grey;">version 1.0 - revised 2015.04.07</span>
<apex:pageBlock title="Details">
<apex:pageBlockSection title="Introduction" columns="2">
<p class="paraCrunch">
My name is <b>{!$User.FirstName} {!$User.LastName}</b> and I'm going to be taking care of you as your Onboarding Specialist here at MealViewer! Do you have a few minutes?
</p>
<p class="paraCrunch">
<ul class="beenWorkingOut">
<li>Call Summary</li>
<ul>
<li><a id="one1" href="#" style="color:black;" onclick="setColorById('one1','green');return false;">Ask the Questions</a></li>
<li><a id="one2" href="#" style="color:black;" onclick="setColorById('one2','green');return false;">Complete the Form</a></li>
<li><a id="one3" href="#" style="color:black;" onclick="setColorById('one3','green');return false;">Thank the Customer</a></li>
</ul>
</ul>
</p>
</apex:pageBlockSection>
<apex:pageBlockSection title="School Details" columns="2">
<p class="paraCrunch">
<ul class="beenWorkingOut">
<li><a id="two1" href="#" style="color:black;" onclick="setColorById('two1','green');return false;">Review All Account Details</a></li>
<li><a id="two2" href="#" style="color:black;" onclick="setColorById('two2','green');return false;">Verify Current Listed Contacts</a></li>
</ul>
</p>
<apex:pageBlockSectionItem />
<apex:inputField value="{!school.How_Many_Total_Wired_Players__c}"/>
<apex:inputField value="{!school.How_Many_Total_Wireless_Players__c}"/>
<apex:inputField value="{!school.How_Many_Total_Displays__c}"/>
<apex:inputField value="{!school.How_Many_Additional_Digital_Suites__c}"/>
<apex:inputField value="{!school.How_Many_Total_Mounts__c}"/>
<apex:inputField value="{!school.How_Many_Total_Splitters__c}"/>
<apex:inputField value="{!school.Length_between_Displays_for_splitters__c}"/>
<apex:inputField value="{!school.Location_of_Player_in_School__c}"/>
<apex:inputField value="{!school.Make_Model_Retrofitted_Displays__c}"/>
<apex:inputField value="{!school.Menu_Planning_Software_Currently_Used__c}"/>
<apex:inputField value="{!school.Make_Model_Retrofitted_Displays__c}"/>
<apex:inputField value="{!school.Do_They_Have_Different_Serving_Lines__c}"/>
<apex:inputField value="{!school.Serving_Lines_per_Player__c}"/>
<apex:inputField value="{!school.Serving_Line_Name_s__c}"/>
<apex:inputField value="{!school.Cycle__c}"/>
<apex:inputField value="{!school.Cycle_Week__c}"/>
<apex:inputField value="{!school.Customer_Confirmed_Installation_Date__c}"/>
<apex:inputField value="{!school.Desired_Launch_Date__c}"/>
<apex:inputField value="{!school.Installation_Date_Time__c}"/>
<apex:inputField value="{!school.Installation_Area_Type__c}"/>
<apex:inputField value="{!school.Make_Model_Retrofitted_Displays__c}"/>
<apex:inputField value="{!school.Display_Size__c}"/>
</apex:pageBlockSection>
<apex:pageBlockSection title="Contact Information" columns="1">
<p class="paraCrunch">
<ul class="beenWorkingOut">
<apex:inputField value="{!school.Maintenance_Contact__c}"/>
<apex:inputField value="{!school.IT_Contact__c}"/>
</ul>
</p>
</apex:pageBlockSection>
<apex:pageBlockSection title="Wrap-Up" columns="1">
<p class="paraCrunch">
Thank you so much for taking the time to meet with me today. We are so excited to get started and look forward to working with you. Are there any questions about the program that you have for me at this time?
</p>
<p class="paraCrunch">
Again, my name is <b>{!$User.FirstName}</b>, and if you have any questions, please contact me at <b>803-380-5538</b>. Or, you can email me at <b>{!$User.Email}</b>.
</p>
</apex:pageBlockSection>
</apex:pageBlock>
<span style="float:right">
<apex:commandButton action="{!save}" value="Save" />
<apex:commandLink onclick="return confirm('Are you sure you want to cancel? All changes will be lost!');" action="{!cancel}" value="cancel"/>
</span><br /><br />
</apex:form>
<br />
<script type="text/javascript">
function confirmCancel() {
return confirm('Are you sure you want to cancel? All changes will be lost!');
}
function addressCopy(b0, b1, b2, b3, s0, s1, s2, s3) {
// Copy billing fields to shipping fields
document.getElementById(s0).value = document.getElementById(b0).value;
document.getElementById(s1).value = document.getElementById(b1).value;
document.getElementById(s2).value = document.getElementById(b2).value;
document.getElementById(s3).value = document.getElementById(b3).value;
// No form submission
return false;
}
function setColorById(id,sColor) {
var elem;
if (document.getElementById) {
if (elem=document.getElementById(id)) {
if (elem.style) {
elem.style.color=sColor;
return 1; // success
}
}
}
return 0; // failure
}
</script>
</apex:page>
- KellyKanches
- May 05, 2016
- Like
- 0
New to APEX - Help with simple VF page
Hi All,
I am new to APEX in regards to creating VF pages.
I keep getting errors on lines 118 and I can't seem to figure it out. Can someone help me please?
<apex:page tabStyle="Account" standardController="Account">
<style >
p {
font-size:16px;
}
.beenWorkingOut {
font-size:16px;
}
.paraCrunch {
margin-left:10%;
margin-right:10%;
}
a {
text-decoration:none;
}
</style>
<apex:pageBlock title="MealViewer Initial Call to Customer Checklist">
<apex:pageBlockSection title="Summary" columns="2">
<apex:outputField value="{!Account.Phone}"/>
<apex:outputField value="{!Account.Name}"/>
<apex:pageBlockSectionItem />
<apex:pageBlockSectionItem />
<apex:pageBlockSectionItem />
<apex:outputLink onClick="window.open('/{!account.id}')">(View Account)</apex:outputLink>
</apex:pageBlockSection>
</apex:pageBlock>
<apex:form >
<span style="float:right">
<apex:commandButton action="{!save}" value="Save" />
<apex:commandLink onclick="return confirm('Are you sure you want to cancel? All changes will be lost!');" action="{!cancel}" value="cancel"/>
</span>
<br /><br /><br />
<span style="float:right; font-size:12px; color:grey;">version 1.0 - revised 2015.04.07</span>
<apex:pageBlock title="Details">
<apex:pageBlockSection title="Introduction and Product Review" columns="2">
<p class="paraCrunch">
My name is <b>{!$User.FirstName} {!$User.LastName}</b> and I'm going to be taking care of you as your Onboarding Specialist here at MealViewer! Do you have a few minutes?
</p>
<p class="paraCrunch">
<ul class="beenWorkingOut">
<li>Product Summary</li>
<ul>
<li><a id="one1" href="#" style="color:black;" onclick="setColorById('one1','green');return false;">Ask the Questions</a></li>
<li><a id="one2" href="#" style="color:black;" onclick="setColorById('one2','green');return false;">Complete the Form</a></li>
<li><a id="one3" href="#" style="color:black;" onclick="setColorById('one3','green');return false;">Thank the Customer</a></li>
</ul>
</ul>
</p>
</apex:pageBlockSection>
<apex:pageBlockSection title="Account Details" columns="2">
<p class="paraCrunch">
<ul class="beenWorkingOut">
<li><a id="two1" href="#" style="color:black;" onclick="setColorById('two1','green');return false;">Review All Account Details</a></li>
<li><a id="two2" href="#" style="color:black;" onclick="setColorById('two2','green');return false;">Verify Current Listed Contacts</a></li>
<li><a id="two3" href="#" style="color:black;" onclick="setColorById('two3','green');return false;">Add New Contacts (bottom of page)</a></li>
</ul>
</p>
<apex:pageBlockSectionItem />
<apex:inputField value="{!Account.Name}"/>
<apex:inputField value="{!Account.Phone}"/>
<apex:pageBlockSectionItem />
<apex:inputField value="{!Account.Website}"/>
<apex:pageBlockSectionItem />
<apex:inputField value="{!Account.How_Many_Total_Wired_Players__c}"/>
<apex:inputField value="{!Account.How_Many_Total_Wireless_Players__c}"/>
<apex:inputField value="{!Account.How_Many_Total_Displays__c}"/>
<apex:inputField value="{!Account.How_Many_Additional_Digital_Suites__c"/>
<apex:inputField value="{!Account.How_Many_Total_Mounts__c}"/>
<apex:inputField value="{!Account.How_Many_Total_Splitters__c}"/>
<apex:inputField value="{!Account.Length_between_Displays_for_splitters__c}"/>
<apex:inputField value="{!Account.Location_of_Player_in_School__c}"/>
<apex:inputField value="{!Account.Make_Model_Retrofitted_Displays__c}"/>
<apex:inputField value="{!Account.Menu_Planning_Software_Currently_Used__c}"/>
<apex:inputField value="{!Account.Make_Model_Retrofitted_Displays__c}"/>
<apex:inputField value="{!Account.Do_They_Have_Different_Serving_Lines__c}"/>
<apex:inputField value="{!Account.Serving_Lines_per_Player__c}"/>
<apex:inputField value="{!Account.Serving_Line_Name_s__c}"/>
<apex:inputField value="{!Account.Cycle__c}"/>
<apex:inputField value="{!Account.Cycle_Week__c}"/>
<apex:inputField value="{!Account.C Customer_Confirmed_Installation_Date__c}"/>
<apex:inputField value="{!Account.C Customer_Desired_Launch_Date__c}"/>
</apex:pageBlockSection>
<apex:pageBlockSection title="Contact Information" columns="2">
<p class="paraCrunch">
<ul class="beenWorkingOut">
<li><a id="three1" href="#" style="color:black;" onclick="setColorById('three1','green');return false;">Confirm Maintenance Contact</a></li>
<li><a id="three2" href="#" style="color:black;" onclick="setColorById('three2','green');return false;">Confirm IT Contact</a></li>
</ul>
</p>
<apex:pageBlockSectionItem />
<apex:inputField value="{!Account.Maintenance_Contact__c}"/>
<apex:inputField value="{!Account.IT_Contact__c}"/>
<apex:pageBlockSection title="Wrap-Up" columns="1">
<p class="paraCrunch">
Thank you so much for taking the time to meet with me today. We are so excited to get started and look forward to working with you. Are there any questions about the program that you have for me at this time?
</p>
<p class="paraCrunch">
Again, my name is <b>{!$User.FirstName}</b>, and if you have any questions, please contact me at <b>803-380-5538</b> . Or, you can email me at <b>{!$User.Email}</b>.
</p>
</apex:pageBlockSection>
</apex:pageBlock>
<span style="float:right">
<apex:commandButton action="{!save}" value="Save" />
<apex:commandLink onclick="return confirm('Are you sure you want to cancel? All changes will be lost!');" action="{!cancel}" value="cancel"/>
</span><br /><br />
</apex:form>
<br />
<apex:pageBlock title="Contacts">
<apex:form >
<apex:commandButton value="New Contact" onclick="window.open('/setup/ui/recordtypeselect.jsp?ent=Contact&retURL=%2F{!account.id}&save_new_url=%2F003%2Fe%3FretURL%3D%252F{!account.id}%26accid%3D{!account.id}');"/>
<apex:pageBlockTable title="Contacts" value="{!account.contacts}" var="item">
<apex:column >
<apex:outputLink value="/{!item.id}" target="_blank">{!item.name}</apex:outputLink>
</apex:column>
<apex:column value="{!item.Title}"/>
<apex:column value="{!item.Email}"/>
<apex:column value="{!item.Primary_Contact__c}"/>
<apex:column value="{!item.Authorized_User__c}"/>
<apex:column value="{!item.Inactive__c}"/>
</apex:pageBlockTable>
</apex:form>
</apex:pageBlock>
<script type="text/javascript">
function confirmCancel() {
return confirm('Are you sure you want to cancel? All changes will be lost!');
}
function addressCopy(b0, b1, b2, b3, s0, s1, s2, s3) {
// Copy billing fields to shipping fields
document.getElementById(s0).value = document.getElementById(b0).value;
document.getElementById(s1).value = document.getElementById(b1).value;
document.getElementById(s2).value = document.getElementById(b2).value;
document.getElementById(s3).value = document.getElementById(b3).value;
// No form submission
return false;
}
function setColorById(id,sColor) {
var elem;
if (document.getElementById) {
if (elem=document.getElementById(id)) {
if (elem.style) {
elem.style.color=sColor;
return 1; // success
}
}
}
return 0; // failure
}
</script>
</apex:page
I am new to APEX in regards to creating VF pages.
I keep getting errors on lines 118 and I can't seem to figure it out. Can someone help me please?
<apex:page tabStyle="Account" standardController="Account">
<style >
p {
font-size:16px;
}
.beenWorkingOut {
font-size:16px;
}
.paraCrunch {
margin-left:10%;
margin-right:10%;
}
a {
text-decoration:none;
}
</style>
<apex:pageBlock title="MealViewer Initial Call to Customer Checklist">
<apex:pageBlockSection title="Summary" columns="2">
<apex:outputField value="{!Account.Phone}"/>
<apex:outputField value="{!Account.Name}"/>
<apex:pageBlockSectionItem />
<apex:pageBlockSectionItem />
<apex:pageBlockSectionItem />
<apex:outputLink onClick="window.open('/{!account.id}')">(View Account)</apex:outputLink>
</apex:pageBlockSection>
</apex:pageBlock>
<apex:form >
<span style="float:right">
<apex:commandButton action="{!save}" value="Save" />
<apex:commandLink onclick="return confirm('Are you sure you want to cancel? All changes will be lost!');" action="{!cancel}" value="cancel"/>
</span>
<br /><br /><br />
<span style="float:right; font-size:12px; color:grey;">version 1.0 - revised 2015.04.07</span>
<apex:pageBlock title="Details">
<apex:pageBlockSection title="Introduction and Product Review" columns="2">
<p class="paraCrunch">
My name is <b>{!$User.FirstName} {!$User.LastName}</b> and I'm going to be taking care of you as your Onboarding Specialist here at MealViewer! Do you have a few minutes?
</p>
<p class="paraCrunch">
<ul class="beenWorkingOut">
<li>Product Summary</li>
<ul>
<li><a id="one1" href="#" style="color:black;" onclick="setColorById('one1','green');return false;">Ask the Questions</a></li>
<li><a id="one2" href="#" style="color:black;" onclick="setColorById('one2','green');return false;">Complete the Form</a></li>
<li><a id="one3" href="#" style="color:black;" onclick="setColorById('one3','green');return false;">Thank the Customer</a></li>
</ul>
</ul>
</p>
</apex:pageBlockSection>
<apex:pageBlockSection title="Account Details" columns="2">
<p class="paraCrunch">
<ul class="beenWorkingOut">
<li><a id="two1" href="#" style="color:black;" onclick="setColorById('two1','green');return false;">Review All Account Details</a></li>
<li><a id="two2" href="#" style="color:black;" onclick="setColorById('two2','green');return false;">Verify Current Listed Contacts</a></li>
<li><a id="two3" href="#" style="color:black;" onclick="setColorById('two3','green');return false;">Add New Contacts (bottom of page)</a></li>
</ul>
</p>
<apex:pageBlockSectionItem />
<apex:inputField value="{!Account.Name}"/>
<apex:inputField value="{!Account.Phone}"/>
<apex:pageBlockSectionItem />
<apex:inputField value="{!Account.Website}"/>
<apex:pageBlockSectionItem />
<apex:inputField value="{!Account.How_Many_Total_Wired_Players__c}"/>
<apex:inputField value="{!Account.How_Many_Total_Wireless_Players__c}"/>
<apex:inputField value="{!Account.How_Many_Total_Displays__c}"/>
<apex:inputField value="{!Account.How_Many_Additional_Digital_Suites__c"/>
<apex:inputField value="{!Account.How_Many_Total_Mounts__c}"/>
<apex:inputField value="{!Account.How_Many_Total_Splitters__c}"/>
<apex:inputField value="{!Account.Length_between_Displays_for_splitters__c}"/>
<apex:inputField value="{!Account.Location_of_Player_in_School__c}"/>
<apex:inputField value="{!Account.Make_Model_Retrofitted_Displays__c}"/>
<apex:inputField value="{!Account.Menu_Planning_Software_Currently_Used__c}"/>
<apex:inputField value="{!Account.Make_Model_Retrofitted_Displays__c}"/>
<apex:inputField value="{!Account.Do_They_Have_Different_Serving_Lines__c}"/>
<apex:inputField value="{!Account.Serving_Lines_per_Player__c}"/>
<apex:inputField value="{!Account.Serving_Line_Name_s__c}"/>
<apex:inputField value="{!Account.Cycle__c}"/>
<apex:inputField value="{!Account.Cycle_Week__c}"/>
<apex:inputField value="{!Account.C Customer_Confirmed_Installation_Date__c}"/>
<apex:inputField value="{!Account.C Customer_Desired_Launch_Date__c}"/>
</apex:pageBlockSection>
<apex:pageBlockSection title="Contact Information" columns="2">
<p class="paraCrunch">
<ul class="beenWorkingOut">
<li><a id="three1" href="#" style="color:black;" onclick="setColorById('three1','green');return false;">Confirm Maintenance Contact</a></li>
<li><a id="three2" href="#" style="color:black;" onclick="setColorById('three2','green');return false;">Confirm IT Contact</a></li>
</ul>
</p>
<apex:pageBlockSectionItem />
<apex:inputField value="{!Account.Maintenance_Contact__c}"/>
<apex:inputField value="{!Account.IT_Contact__c}"/>
<apex:pageBlockSection title="Wrap-Up" columns="1">
<p class="paraCrunch">
Thank you so much for taking the time to meet with me today. We are so excited to get started and look forward to working with you. Are there any questions about the program that you have for me at this time?
</p>
<p class="paraCrunch">
Again, my name is <b>{!$User.FirstName}</b>, and if you have any questions, please contact me at <b>803-380-5538</b> . Or, you can email me at <b>{!$User.Email}</b>.
</p>
</apex:pageBlockSection>
</apex:pageBlock>
<span style="float:right">
<apex:commandButton action="{!save}" value="Save" />
<apex:commandLink onclick="return confirm('Are you sure you want to cancel? All changes will be lost!');" action="{!cancel}" value="cancel"/>
</span><br /><br />
</apex:form>
<br />
<apex:pageBlock title="Contacts">
<apex:form >
<apex:commandButton value="New Contact" onclick="window.open('/setup/ui/recordtypeselect.jsp?ent=Contact&retURL=%2F{!account.id}&save_new_url=%2F003%2Fe%3FretURL%3D%252F{!account.id}%26accid%3D{!account.id}');"/>
<apex:pageBlockTable title="Contacts" value="{!account.contacts}" var="item">
<apex:column >
<apex:outputLink value="/{!item.id}" target="_blank">{!item.name}</apex:outputLink>
</apex:column>
<apex:column value="{!item.Title}"/>
<apex:column value="{!item.Email}"/>
<apex:column value="{!item.Primary_Contact__c}"/>
<apex:column value="{!item.Authorized_User__c}"/>
<apex:column value="{!item.Inactive__c}"/>
</apex:pageBlockTable>
</apex:form>
</apex:pageBlock>
<script type="text/javascript">
function confirmCancel() {
return confirm('Are you sure you want to cancel? All changes will be lost!');
}
function addressCopy(b0, b1, b2, b3, s0, s1, s2, s3) {
// Copy billing fields to shipping fields
document.getElementById(s0).value = document.getElementById(b0).value;
document.getElementById(s1).value = document.getElementById(b1).value;
document.getElementById(s2).value = document.getElementById(b2).value;
document.getElementById(s3).value = document.getElementById(b3).value;
// No form submission
return false;
}
function setColorById(id,sColor) {
var elem;
if (document.getElementById) {
if (elem=document.getElementById(id)) {
if (elem.style) {
elem.style.color=sColor;
return 1; // success
}
}
}
return 0; // failure
}
</script>
</apex:page
- KellyKanches
- April 21, 2016
- Like
- 0
Earned badge, completed 5 badges (actually 17) but no sweatshirt...does anyone know why this may have happened?
I enrolled via the Pardot link and then completed badges (17 in total) and no email ever came for sweatshirt....does anyone have any ideas as to why?
Thanks!
Thanks!
- KellyKanches
- January 24, 2016
- Like
- 0
New to APEX. Building VF page and can't view custom object output fields and text is ugly (see images of preview)
Here is my code
<apex:page tabStyle="Account" standardController="Account">
<style >
p {
font-size:16px;
}
.beenWorkingOut {
font-size:16px;
}
.paraCrunch {
margin-left:10%;
margin-right:10%;
}
a {
text-decoration:none;
}
</style>
<apex:pageBlock title="AB Welcome Call/Enrollment Call ">
<apex:pageBlockSection title="Summary" columns="2">
<apex:outputField value="{!Account.CustNumber__c}"/>
<apex:outputField value="{!Account.Phone}"/>
<apex:outputField value="{!Account.Name}"/>
<apex:pageBlockSectionItem />
<apex:pageBlockSectionItem />
<apex:pageBlockSectionItem />
<apex:outputLink onClick="window.open('/{!account.id}')">(View Account)</apex:outputLink>
</apex:pageBlockSection>
<apex:pageBlockTable title="Modules" value="{!account.Modules__r}" var="item">
<apex:outputField value="{!item.Pre_Launch_Date__c}"/>
<apex:outputField value="{!item.Base_Product__c}"/>
<apex:outputField value="{!item.White_Labeled_As__c}"/>
<apex:outputField value="{!item.Status__c}"/>
<apex:outputField value="{!item.Recordings_Complete__c}"/>
</apex:pageBlockTable>
</apex:pageBlock>
<apex:form >
<span style="float:right">
<apex:commandButton action="{!save}" value="Save" />
<apex:commandLink onclick="return confirm('Are you sure you want to cancel? All changes will be lost!');" action="{!cancel}" value="cancel"/>
</span>
<br />
<br />
<br />
<span style="float:right; font-size:12px; color:grey;">version 1.0 - revised 2015.04.07</span>
<apex:pageBlock title="Details">
<apex:pageBlockSection title="Introduction and Product Review" columns="1">
<p class="paraCrunch">
When Amerisource Bergen
<p class="paraCrunch"></p>
My name is
<b>{!$User.FirstName} {!$User.LastName}</b> I am calling from Prescribe Wellness on behalf of AmerisourceBergen. May I please speak with {!Account.PW_Champion__c}?
</p>
<p class="paraCrunch">
Hi {!Account.PW_Champion__c}, this is
<b>{!$User.FirstName} {!$User.LastName}</b> from Prescribe Wellness. The reason for my call is today is that as a member of Elevate’s Advanced Features you will receive the Patient Engagement Center provided by Prescribe Wellness. The Patient Engagement Center is a tool that will help you address medication adherence, star ratings, and patient loyalty. We provide you the tools needed to take action on your pharmacy data.
</p>
</apex:pageBlockSection>
<apex:pageBlockSection title="Account Details" columns="1">
<p class="paraCrunch">
<ul class="beenWorkingOut">
<li>
<a id="two1" href="#" style="color:black;" onclick="setColorById('two1','green');return false;">Review The Solutions They are Receiving</a>
</li>
</ul>
</p>
<apex:pageBlockSectionItem />
<apex:inputField value="{!Account.Name}"/>
<apex:inputField value="{!account.CustNumber__c}"/>
<apex:inputField value="{!Account.Phone}"/>
<apex:inputField value="{!Account.Groups__c}"/>
<apex:outputLink onClick="window.open('/{!account.id}')">(View Account)</apex:outputLink>
<apex:pageBlockSectionItem />
<apex:pageBlockTable title="Modules" value="{!account.Modules__r}" var="item">
<apex:column value="{!item.Pre_Launch_Date__c}"/>
<apex:column value="{!item.Base_Product__c}"/>
<apex:column value="{!item.White_Labeled_As__c}"/>
<apex:column value="{!item.Status__c}"/>
<apex:column value="{!item.Recordings_Complete__c}"/>
</apex:pageblocktable>
</apex:pageBlockSection>
<apex:pageBlockSection title="Collect Forms" columns="1">
<p class="paraCrunch">
<ul class="beenWorkingOut">
Online enrollment form and data form (if applicable):
The first step in setting up your Patient Engagement Center is completing the online enrollment form.
Direct them to prescribewellness.com/elevate and have them click on their dispensing system if listed. If not, click on All Other Dispensing Systems.
Ask if they have multiple locations that are Elevate with Advanced Features. If so, have them fill out the
<apex:outputLink value="http://developer.salesforce.com/">Enrollment Form</apex:outputLink> for each location.
Create a case to set up a hierarchy – include all account numbers in the case.
*If they are not able to fill out the form on the phone, please send the
<apex:outputLink value="https://na18.salesforce.com/00X12000001rQCZ?setupid=CommunicationTemplatesEmail">email template</apex:outputLink>
that contains the link to prescribewellness.com/elevate.
</ul>
</p>
<apex:pageBlockSectionItem />
</apex:pageblocksection>
<apex:pageBlockSection title="Review Account Details" columns="1">
<p class="paraCrunch">
I would like to confirm your pharmacy information and ask you a few questions.
<ul class="beenWorkingOut">
<li>
<a id="four1" href="#" style="color:black;" onclick="setColorById('four1','green');return false;">Verify the account information: </a>
</li>
<apex:pageBlockSectionItem />
<apex:inputField value="{!Account.Pharmacy_Email__c}"/>
<apex:inputField value="{!account.Phone}"/>
<apex:inputField value="{!Account.Fax}"/>
<apex:inputField value="{!Account.NCPDP__c}"/>
<apex:inputField value="{!Account.NPI__c}"/>
<apex:inputField value="{!Account.Web_Input_DSP__c}"/>
<apex:inputField value="{!Account.Primary_Contact__c}"/>
<apex:inputField value="{!Account.PW_Champion__c}"/>
<apex:inputField value="{!Account.PW_Champion_Email__c}"/>
<p class="paraCrunch">
When did the Pharmacy open?
</p>
<apex:inputField value="{!Account.DEA_Start_Date__c}"/>
</ul>
</p>
<p class="paraCrunch">
Ask the Pre-Launch Meeting questions.
</p>
</apex:pageBlockSection>
<apex:pageBlockSection title="Obtaining the pharmacie's data:" columns="1">
<p class="paraCrunch">
<ul class="beenWorkingOut">
<li>
<a id="five1" href="#" style="color:black;" onclick="setColorById('five1','green');return false;">If automated data extraction</a>
</li>
<p class="paraCrunch">
o For your dispensing system we receive your pharmacy’s data directly from the dispensing system. Once we have received your pharmacy’s data, we will send you an activation email. One of our trainers will then call you to schedule a time for a one-on-one training.
</p>
<li>
<a id="five2" href="#" style="color:black;" onclick="setColorById('five2','green');return false;">If manual data extraction is required</a>
</li>
<p class="paraCrunch">
o For your dispensing system, we will need to schedule a meeting with our data team so they can establish the connection with your dispensing system. We establish the connection through an application called TeamViewer.
</p>
<p class="paraCrunch">
o Schedule the integration meeting in Salesforce. Note that it can be anyone in the pharmacy who we conduct the integration meeting with.
</p>
<p class="paraCrunch">
o A member of our data team will contact you on [date and time] to conduct the integration meeting.
</p>
<p class="paraCrunch">
o After the integration meeting is complete and we have your pharmacy data, we will send you an activation email. One of our trainers will then call you to schedule a time for a one-on-one training.
</p>
</ul>
</p>
<apex:pageBlockSectionItem />
</apex:pageBlockSection>
<apex:pageBlockSection title="University Training" columns="1">
<p class="paraCrunch">
(please refer to the welcome email for login instructions or resend the welcome email)
Prescribe Wellness has developed a series of online training courses designed to maximize your experience navigating your new tools. Please refer to the university courses at any time for further instruction on how to use Prescribe Wellness.
</p>
</apex:pageBlockSection>
<apex:pageBlockSection title="Wrap-Up" columns="1">
<p class="paraCrunch">
That's everything I had for you today. Thank you so much for taking the time to speak with me today.
</p>
<p class="paraCrunch">
Thank you so much for taking the time to speak with me today. We are excited to get started and look forward to working with you. Are there any questions about the program that you have for me at this time?
</p>
<apex:inputField value="{!Account.Welcome_Call_Completed__c}"/>
<p class="paraCrunch">
Always log your calls in Salesforce!
</p>
</apex:pageBlockSection>
</apex:pageBlock>
<span style="float:right">
<apex:commandButton action="{!save}" value="Save" />
<apex:commandLink onclick="return confirm('Are you sure you want to cancel? All changes will be lost!');" action="{!cancel}" value="cancel"/>
</span>
<br />
<br />
</apex:form>
<br />
<script type="text/javascript">
function confirmCancel() {
return confirm('Are you sure you want to cancel? All changes will be lost!');
}
function addressCopy(b0, b1, b2, b3, s0, s1, s2, s3) {
// Copy billing fields to shipping fields
document.getElementById(s0).value = document.getElementById(b0).value;
document.getElementById(s1).value = document.getElementById(b1).value;
document.getElementById(s2).value = document.getElementById(b2).value;
document.getElementById(s3).value = document.getElementById(b3).value;
// No form submission
return false;
}
function setColorById(id,sColor) {
var elem;
if (document.getElementById) {
if (elem=document.getElementById(id)) {
if (elem.style) {
elem.style.color=sColor;
return 1; // success
}
}
}
return 0; // failure
}
</script>
</apex:page>
and when I preview my page - I can't see the output fields from my custom object and the text formatting is ugly (see screen shots)
Can someone help me identify what I am going wrong?
<apex:page tabStyle="Account" standardController="Account">
<style >
p {
font-size:16px;
}
.beenWorkingOut {
font-size:16px;
}
.paraCrunch {
margin-left:10%;
margin-right:10%;
}
a {
text-decoration:none;
}
</style>
<apex:pageBlock title="AB Welcome Call/Enrollment Call ">
<apex:pageBlockSection title="Summary" columns="2">
<apex:outputField value="{!Account.CustNumber__c}"/>
<apex:outputField value="{!Account.Phone}"/>
<apex:outputField value="{!Account.Name}"/>
<apex:pageBlockSectionItem />
<apex:pageBlockSectionItem />
<apex:pageBlockSectionItem />
<apex:outputLink onClick="window.open('/{!account.id}')">(View Account)</apex:outputLink>
</apex:pageBlockSection>
<apex:pageBlockTable title="Modules" value="{!account.Modules__r}" var="item">
<apex:outputField value="{!item.Pre_Launch_Date__c}"/>
<apex:outputField value="{!item.Base_Product__c}"/>
<apex:outputField value="{!item.White_Labeled_As__c}"/>
<apex:outputField value="{!item.Status__c}"/>
<apex:outputField value="{!item.Recordings_Complete__c}"/>
</apex:pageBlockTable>
</apex:pageBlock>
<apex:form >
<span style="float:right">
<apex:commandButton action="{!save}" value="Save" />
<apex:commandLink onclick="return confirm('Are you sure you want to cancel? All changes will be lost!');" action="{!cancel}" value="cancel"/>
</span>
<br />
<br />
<br />
<span style="float:right; font-size:12px; color:grey;">version 1.0 - revised 2015.04.07</span>
<apex:pageBlock title="Details">
<apex:pageBlockSection title="Introduction and Product Review" columns="1">
<p class="paraCrunch">
When Amerisource Bergen
<p class="paraCrunch"></p>
My name is
<b>{!$User.FirstName} {!$User.LastName}</b> I am calling from Prescribe Wellness on behalf of AmerisourceBergen. May I please speak with {!Account.PW_Champion__c}?
</p>
<p class="paraCrunch">
Hi {!Account.PW_Champion__c}, this is
<b>{!$User.FirstName} {!$User.LastName}</b> from Prescribe Wellness. The reason for my call is today is that as a member of Elevate’s Advanced Features you will receive the Patient Engagement Center provided by Prescribe Wellness. The Patient Engagement Center is a tool that will help you address medication adherence, star ratings, and patient loyalty. We provide you the tools needed to take action on your pharmacy data.
</p>
</apex:pageBlockSection>
<apex:pageBlockSection title="Account Details" columns="1">
<p class="paraCrunch">
<ul class="beenWorkingOut">
<li>
<a id="two1" href="#" style="color:black;" onclick="setColorById('two1','green');return false;">Review The Solutions They are Receiving</a>
</li>
</ul>
</p>
<apex:pageBlockSectionItem />
<apex:inputField value="{!Account.Name}"/>
<apex:inputField value="{!account.CustNumber__c}"/>
<apex:inputField value="{!Account.Phone}"/>
<apex:inputField value="{!Account.Groups__c}"/>
<apex:outputLink onClick="window.open('/{!account.id}')">(View Account)</apex:outputLink>
<apex:pageBlockSectionItem />
<apex:pageBlockTable title="Modules" value="{!account.Modules__r}" var="item">
<apex:column value="{!item.Pre_Launch_Date__c}"/>
<apex:column value="{!item.Base_Product__c}"/>
<apex:column value="{!item.White_Labeled_As__c}"/>
<apex:column value="{!item.Status__c}"/>
<apex:column value="{!item.Recordings_Complete__c}"/>
</apex:pageblocktable>
</apex:pageBlockSection>
<apex:pageBlockSection title="Collect Forms" columns="1">
<p class="paraCrunch">
<ul class="beenWorkingOut">
Online enrollment form and data form (if applicable):
The first step in setting up your Patient Engagement Center is completing the online enrollment form.
Direct them to prescribewellness.com/elevate and have them click on their dispensing system if listed. If not, click on All Other Dispensing Systems.
Ask if they have multiple locations that are Elevate with Advanced Features. If so, have them fill out the
<apex:outputLink value="http://developer.salesforce.com/">Enrollment Form</apex:outputLink> for each location.
Create a case to set up a hierarchy – include all account numbers in the case.
*If they are not able to fill out the form on the phone, please send the
<apex:outputLink value="https://na18.salesforce.com/00X12000001rQCZ?setupid=CommunicationTemplatesEmail">email template</apex:outputLink>
that contains the link to prescribewellness.com/elevate.
</ul>
</p>
<apex:pageBlockSectionItem />
</apex:pageblocksection>
<apex:pageBlockSection title="Review Account Details" columns="1">
<p class="paraCrunch">
I would like to confirm your pharmacy information and ask you a few questions.
<ul class="beenWorkingOut">
<li>
<a id="four1" href="#" style="color:black;" onclick="setColorById('four1','green');return false;">Verify the account information: </a>
</li>
<apex:pageBlockSectionItem />
<apex:inputField value="{!Account.Pharmacy_Email__c}"/>
<apex:inputField value="{!account.Phone}"/>
<apex:inputField value="{!Account.Fax}"/>
<apex:inputField value="{!Account.NCPDP__c}"/>
<apex:inputField value="{!Account.NPI__c}"/>
<apex:inputField value="{!Account.Web_Input_DSP__c}"/>
<apex:inputField value="{!Account.Primary_Contact__c}"/>
<apex:inputField value="{!Account.PW_Champion__c}"/>
<apex:inputField value="{!Account.PW_Champion_Email__c}"/>
<p class="paraCrunch">
When did the Pharmacy open?
</p>
<apex:inputField value="{!Account.DEA_Start_Date__c}"/>
</ul>
</p>
<p class="paraCrunch">
Ask the Pre-Launch Meeting questions.
</p>
</apex:pageBlockSection>
<apex:pageBlockSection title="Obtaining the pharmacie's data:" columns="1">
<p class="paraCrunch">
<ul class="beenWorkingOut">
<li>
<a id="five1" href="#" style="color:black;" onclick="setColorById('five1','green');return false;">If automated data extraction</a>
</li>
<p class="paraCrunch">
o For your dispensing system we receive your pharmacy’s data directly from the dispensing system. Once we have received your pharmacy’s data, we will send you an activation email. One of our trainers will then call you to schedule a time for a one-on-one training.
</p>
<li>
<a id="five2" href="#" style="color:black;" onclick="setColorById('five2','green');return false;">If manual data extraction is required</a>
</li>
<p class="paraCrunch">
o For your dispensing system, we will need to schedule a meeting with our data team so they can establish the connection with your dispensing system. We establish the connection through an application called TeamViewer.
</p>
<p class="paraCrunch">
o Schedule the integration meeting in Salesforce. Note that it can be anyone in the pharmacy who we conduct the integration meeting with.
</p>
<p class="paraCrunch">
o A member of our data team will contact you on [date and time] to conduct the integration meeting.
</p>
<p class="paraCrunch">
o After the integration meeting is complete and we have your pharmacy data, we will send you an activation email. One of our trainers will then call you to schedule a time for a one-on-one training.
</p>
</ul>
</p>
<apex:pageBlockSectionItem />
</apex:pageBlockSection>
<apex:pageBlockSection title="University Training" columns="1">
<p class="paraCrunch">
(please refer to the welcome email for login instructions or resend the welcome email)
Prescribe Wellness has developed a series of online training courses designed to maximize your experience navigating your new tools. Please refer to the university courses at any time for further instruction on how to use Prescribe Wellness.
</p>
</apex:pageBlockSection>
<apex:pageBlockSection title="Wrap-Up" columns="1">
<p class="paraCrunch">
That's everything I had for you today. Thank you so much for taking the time to speak with me today.
</p>
<p class="paraCrunch">
Thank you so much for taking the time to speak with me today. We are excited to get started and look forward to working with you. Are there any questions about the program that you have for me at this time?
</p>
<apex:inputField value="{!Account.Welcome_Call_Completed__c}"/>
<p class="paraCrunch">
Always log your calls in Salesforce!
</p>
</apex:pageBlockSection>
</apex:pageBlock>
<span style="float:right">
<apex:commandButton action="{!save}" value="Save" />
<apex:commandLink onclick="return confirm('Are you sure you want to cancel? All changes will be lost!');" action="{!cancel}" value="cancel"/>
</span>
<br />
<br />
</apex:form>
<br />
<script type="text/javascript">
function confirmCancel() {
return confirm('Are you sure you want to cancel? All changes will be lost!');
}
function addressCopy(b0, b1, b2, b3, s0, s1, s2, s3) {
// Copy billing fields to shipping fields
document.getElementById(s0).value = document.getElementById(b0).value;
document.getElementById(s1).value = document.getElementById(b1).value;
document.getElementById(s2).value = document.getElementById(b2).value;
document.getElementById(s3).value = document.getElementById(b3).value;
// No form submission
return false;
}
function setColorById(id,sColor) {
var elem;
if (document.getElementById) {
if (elem=document.getElementById(id)) {
if (elem.style) {
elem.style.color=sColor;
return 1; // success
}
}
}
return 0; // failure
}
</script>
</apex:page>
and when I preview my page - I can't see the output fields from my custom object and the text formatting is ugly (see screen shots)
Can someone help me identify what I am going wrong?
- KellyKanches
- June 10, 2016
- Like
- 0
Error: Digital_Suite_Checklist line 121, column 12: XML document structures must start and end within the same entity Error Error: XML document structures must start and end within the same entity.
Can someone help me with how to close out this page?
I am very new to VF and APEX and don't have a clue what I am doing wrong.
Thanks!
<apex:page>
<apex:page: standardcontroller="School__c" tabstyle="School__c">
<style >
p {
font-size:16px;
}
.beenWorkingOut {
font-size:16px;
}
.paraCrunch {
margin-left:10%;
margin-right:10%;
}
a {
text-decoration:none;
}
</style>
<apex:pageBlock title="MealViewer Initial Call to Customer Checklist">
<apex:pageBlockSection title="Summary" columns="2">
<apex:outputField value="{!school.Phone}"/>
<apex:outputField value="{!school.Name}"/>
<apex:pageBlockSectionItem />
<apex:pageBlockSectionItem />
<apex:pageBlockSectionItem />
<apex:outputLink onClick="window.open('/{!school.id}')">(View School)</apex:outputLink>
</apex:pageBlockSection>
</apex:pageBlock>
<apex:form >
<span style="float:right">
<apex:commandButton action="{!save}" value="Save" />
<apex:commandLink onclick="return confirm('Are you sure you want to cancel? All changes will be lost!');" action="{!cancel}" value="cancel"/>
</span>
<br /><br /><br />
<span style="float:right; font-size:12px; color:grey;">version 1.0 - revised 2015.04.07</span>
<apex:pageBlock title="Details">
<apex:pageBlockSection title="Introduction" columns="2">
<p class="paraCrunch">
My name is <b>{!$User.FirstName} {!$User.LastName}</b> and I'm going to be taking care of you as your Onboarding Specialist here at MealViewer! Do you have a few minutes?
</p>
<p class="paraCrunch">
<ul class="beenWorkingOut">
<li>Call Summary</li>
<ul>
<li><a id="one1" href="#" style="color:black;" onclick="setColorById('one1','green');return false;">Ask the Questions</a></li>
<li><a id="one2" href="#" style="color:black;" onclick="setColorById('one2','green');return false;">Complete the Form</a></li>
<li><a id="one3" href="#" style="color:black;" onclick="setColorById('one3','green');return false;">Thank the Customer</a></li>
</ul>
</ul>
</p>
</apex:pageBlockSection>
<apex:pageBlockSection title="School Details" columns="2">
<p class="paraCrunch">
<ul class="beenWorkingOut">
<li><a id="two1" href="#" style="color:black;" onclick="setColorById('two1','green');return false;">Review All Account Details</a></li>
<li><a id="two2" href="#" style="color:black;" onclick="setColorById('two2','green');return false;">Verify Current Listed Contacts</a></li>
</ul>
</p>
<apex:pageBlockSectionItem />
<apex:inputField value="{!school.How_Many_Total_Wired_Players__c}"/>
<apex:inputField value="{!school.How_Many_Total_Wireless_Players__c}"/>
<apex:inputField value="{!school.How_Many_Total_Displays__c}"/>
<apex:inputField value="{!school.How_Many_Additional_Digital_Suites__c}"/>
<apex:inputField value="{!school.How_Many_Total_Mounts__c}"/>
<apex:inputField value="{!school.How_Many_Total_Splitters__c}"/>
<apex:inputField value="{!school.Length_between_Displays_for_splitters__c}"/>
<apex:inputField value="{!school.Location_of_Player_in_School__c}"/>
<apex:inputField value="{!school.Make_Model_Retrofitted_Displays__c}"/>
<apex:inputField value="{!school.Menu_Planning_Software_Currently_Used__c}"/>
<apex:inputField value="{!school.Make_Model_Retrofitted_Displays__c}"/>
<apex:inputField value="{!school.Do_They_Have_Different_Serving_Lines__c}"/>
<apex:inputField value="{!school.Serving_Lines_per_Player__c}"/>
<apex:inputField value="{!school.Serving_Line_Name_s__c}"/>
<apex:inputField value="{!school.Cycle__c}"/>
<apex:inputField value="{!school.Cycle_Week__c}"/>
<apex:inputField value="{!school.Customer_Confirmed_Installation_Date__c}"/>
<apex:inputField value="{!school.Desired_Launch_Date__c}"/>
<apex:inputField value="{!school.Installation_Date_Time__c}"/>
<apex:inputField value="{!school.Installation_Area_Type__c}"/>
<apex:inputField value="{!school.Make_Model_Retrofitted_Displays__c}"/>
<apex:inputField value="{!school.Display_Size__c}"/>
</apex:pageBlockSection>
<apex:pageBlockSection title="Contact Information" columns="1">
<p class="paraCrunch">
<ul class="beenWorkingOut">
<apex:inputField value="{!school.Maintenance_Contact__c}"/>
<apex:inputField value="{!school.IT_Contact__c}"/>
</ul>
</p>
</apex:pageBlockSection>
<apex:pageBlockSection title="Wrap-Up" columns="1">
<p class="paraCrunch">
Thank you so much for taking the time to meet with me today. We are so excited to get started and look forward to working with you. Are there any questions about the program that you have for me at this time?
</p>
<p class="paraCrunch">
Again, my name is <b>{!$User.FirstName}</b>, and if you have any questions, please contact me at <b>803-380-5538</b>. Or, you can email me at <b>{!$User.Email}</b>.
</p>
</apex:pageBlockSection>
</apex:pageBlock>
<span style="float:right">
<apex:commandButton action="{!save}" value="Save" />
<apex:commandLink onclick="return confirm('Are you sure you want to cancel? All changes will be lost!');" action="{!cancel}" value="cancel"/>
</span><br /><br />
<apex:page>
I am very new to VF and APEX and don't have a clue what I am doing wrong.
Thanks!
<apex:page>
<apex:page: standardcontroller="School__c" tabstyle="School__c">
<style >
p {
font-size:16px;
}
.beenWorkingOut {
font-size:16px;
}
.paraCrunch {
margin-left:10%;
margin-right:10%;
}
a {
text-decoration:none;
}
</style>
<apex:pageBlock title="MealViewer Initial Call to Customer Checklist">
<apex:pageBlockSection title="Summary" columns="2">
<apex:outputField value="{!school.Phone}"/>
<apex:outputField value="{!school.Name}"/>
<apex:pageBlockSectionItem />
<apex:pageBlockSectionItem />
<apex:pageBlockSectionItem />
<apex:outputLink onClick="window.open('/{!school.id}')">(View School)</apex:outputLink>
</apex:pageBlockSection>
</apex:pageBlock>
<apex:form >
<span style="float:right">
<apex:commandButton action="{!save}" value="Save" />
<apex:commandLink onclick="return confirm('Are you sure you want to cancel? All changes will be lost!');" action="{!cancel}" value="cancel"/>
</span>
<br /><br /><br />
<span style="float:right; font-size:12px; color:grey;">version 1.0 - revised 2015.04.07</span>
<apex:pageBlock title="Details">
<apex:pageBlockSection title="Introduction" columns="2">
<p class="paraCrunch">
My name is <b>{!$User.FirstName} {!$User.LastName}</b> and I'm going to be taking care of you as your Onboarding Specialist here at MealViewer! Do you have a few minutes?
</p>
<p class="paraCrunch">
<ul class="beenWorkingOut">
<li>Call Summary</li>
<ul>
<li><a id="one1" href="#" style="color:black;" onclick="setColorById('one1','green');return false;">Ask the Questions</a></li>
<li><a id="one2" href="#" style="color:black;" onclick="setColorById('one2','green');return false;">Complete the Form</a></li>
<li><a id="one3" href="#" style="color:black;" onclick="setColorById('one3','green');return false;">Thank the Customer</a></li>
</ul>
</ul>
</p>
</apex:pageBlockSection>
<apex:pageBlockSection title="School Details" columns="2">
<p class="paraCrunch">
<ul class="beenWorkingOut">
<li><a id="two1" href="#" style="color:black;" onclick="setColorById('two1','green');return false;">Review All Account Details</a></li>
<li><a id="two2" href="#" style="color:black;" onclick="setColorById('two2','green');return false;">Verify Current Listed Contacts</a></li>
</ul>
</p>
<apex:pageBlockSectionItem />
<apex:inputField value="{!school.How_Many_Total_Wired_Players__c}"/>
<apex:inputField value="{!school.How_Many_Total_Wireless_Players__c}"/>
<apex:inputField value="{!school.How_Many_Total_Displays__c}"/>
<apex:inputField value="{!school.How_Many_Additional_Digital_Suites__c}"/>
<apex:inputField value="{!school.How_Many_Total_Mounts__c}"/>
<apex:inputField value="{!school.How_Many_Total_Splitters__c}"/>
<apex:inputField value="{!school.Length_between_Displays_for_splitters__c}"/>
<apex:inputField value="{!school.Location_of_Player_in_School__c}"/>
<apex:inputField value="{!school.Make_Model_Retrofitted_Displays__c}"/>
<apex:inputField value="{!school.Menu_Planning_Software_Currently_Used__c}"/>
<apex:inputField value="{!school.Make_Model_Retrofitted_Displays__c}"/>
<apex:inputField value="{!school.Do_They_Have_Different_Serving_Lines__c}"/>
<apex:inputField value="{!school.Serving_Lines_per_Player__c}"/>
<apex:inputField value="{!school.Serving_Line_Name_s__c}"/>
<apex:inputField value="{!school.Cycle__c}"/>
<apex:inputField value="{!school.Cycle_Week__c}"/>
<apex:inputField value="{!school.Customer_Confirmed_Installation_Date__c}"/>
<apex:inputField value="{!school.Desired_Launch_Date__c}"/>
<apex:inputField value="{!school.Installation_Date_Time__c}"/>
<apex:inputField value="{!school.Installation_Area_Type__c}"/>
<apex:inputField value="{!school.Make_Model_Retrofitted_Displays__c}"/>
<apex:inputField value="{!school.Display_Size__c}"/>
</apex:pageBlockSection>
<apex:pageBlockSection title="Contact Information" columns="1">
<p class="paraCrunch">
<ul class="beenWorkingOut">
<apex:inputField value="{!school.Maintenance_Contact__c}"/>
<apex:inputField value="{!school.IT_Contact__c}"/>
</ul>
</p>
</apex:pageBlockSection>
<apex:pageBlockSection title="Wrap-Up" columns="1">
<p class="paraCrunch">
Thank you so much for taking the time to meet with me today. We are so excited to get started and look forward to working with you. Are there any questions about the program that you have for me at this time?
</p>
<p class="paraCrunch">
Again, my name is <b>{!$User.FirstName}</b>, and if you have any questions, please contact me at <b>803-380-5538</b>. Or, you can email me at <b>{!$User.Email}</b>.
</p>
</apex:pageBlockSection>
</apex:pageBlock>
<span style="float:right">
<apex:commandButton action="{!save}" value="Save" />
<apex:commandLink onclick="return confirm('Are you sure you want to cancel? All changes will be lost!');" action="{!cancel}" value="cancel"/>
</span><br /><br />
<apex:page>
- KellyKanches
- May 05, 2016
- Like
- 0
(Beginner Developer building VF Page) Need Code to reference custom object field
Hi all,
I am a beginner developer (really an admin but learning to build VF pages)
I built a page for the Account Object that I now need to move to a Custom Object and reference the Custom Object (School__C) fields.
I cloned the Account page I built and changed out the Account wth School...I must be doing something wrong because I get the error
"School Does Not Exist"
Can someone help?
Code below
<apex:page tabStyle="School__c" standardController="School">
<style >
p {
font-size:16px;
}
.beenWorkingOut {
font-size:16px;
}
.paraCrunch {
margin-left:10%;
margin-right:10%;
}
a {
text-decoration:none;
}
</style>
<apex:pageBlock title="MealViewer Initial Call to Customer Checklist">
<apex:pageBlockSection title="Summary" columns="2">
<apex:outputField value="{!School.Phone}"/>
<apex:outputField value="{!School.Name}"/>
<apex:pageBlockSectionItem />
<apex:pageBlockSectionItem />
<apex:pageBlockSectionItem />
<apex:outputLink onClick="window.open('/{!school.id}')">(View School)</apex:outputLink>
</apex:pageBlockSection>
</apex:pageBlock>
<apex:form >
<span style="float:right">
<apex:commandButton action="{!save}" value="Save" />
<apex:commandLink onclick="return confirm('Are you sure you want to cancel? All changes will be lost!');" action="{!cancel}" value="cancel"/>
</span>
<br /><br /><br />
<span style="float:right; font-size:12px; color:grey;">version 1.0 - revised 2015.04.07</span>
<apex:pageBlock title="Details">
<apex:pageBlockSection title="Introduction" columns="2">
<p class="paraCrunch">
My name is <b>{!$User.FirstName} {!$User.LastName}</b> and I'm going to be taking care of you as your Onboarding Specialist here at MealViewer! Do you have a few minutes?
</p>
<p class="paraCrunch">
<ul class="beenWorkingOut">
<li>Call Summary</li>
<ul>
<li><a id="one1" href="#" style="color:black;" onclick="setColorById('one1','green');return false;">Ask the Questions</a></li>
<li><a id="one2" href="#" style="color:black;" onclick="setColorById('one2','green');return false;">Complete the Form</a></li>
<li><a id="one3" href="#" style="color:black;" onclick="setColorById('one3','green');return false;">Thank the Customer</a></li>
</ul>
</ul>
</p>
</apex:pageBlockSection>
<apex:pageBlockSection title="School Details" columns="2">
<p class="paraCrunch">
<ul class="beenWorkingOut">
<li><a id="two1" href="#" style="color:black;" onclick="setColorById('two1','green');return false;">Review All Account Details</a></li>
<li><a id="two2" href="#" style="color:black;" onclick="setColorById('two2','green');return false;">Verify Current Listed Contacts</a></li>
</ul>
</p>
<apex:pageBlockSectionItem />
<apex:inputField value="{!school.How_Many_Total_Wired_Players__c}"/>
<apex:inputField value="{!school.How_Many_Total_Wireless_Players__c}"/>
<apex:inputField value="{!school.How_Many_Total_Displays__c}"/>
<apex:inputField value="{!school.How_Many_Additional_Digital_Suites__c}"/>
<apex:inputField value="{!school.How_Many_Total_Mounts__c}"/>
<apex:inputField value="{!school.How_Many_Total_Splitters__c}"/>
<apex:inputField value="{!school.Length_between_Displays_for_splitters__c}"/>
<apex:inputField value="{!school.Location_of_Player_in_School__c}"/>
<apex:inputField value="{!school.Make_Model_Retrofitted_Displays__c}"/>
<apex:inputField value="{!school.Menu_Planning_Software_Currently_Used__c}"/>
<apex:inputField value="{!school.Make_Model_Retrofitted_Displays__c}"/>
<apex:inputField value="{!school.Do_They_Have_Different_Serving_Lines__c}"/>
<apex:inputField value="{!school.Serving_Lines_per_Player__c}"/>
<apex:inputField value="{!school.Serving_Line_Name_s__c}"/>
<apex:inputField value="{!school.Cycle__c}"/>
<apex:inputField value="{!school.Cycle_Week__c}"/>
<apex:inputField value="{!school.Customer_Confirmed_Installation_Date__c}"/>
<apex:inputField value="{!school.Desired_Launch_Date__c}"/>
<apex:inputField value="{!school.Installation_Date_Time__c}"/>
<apex:inputField value="{!school.Installation_Area_Type__c}"/>
<apex:inputField value="{!school.Make_Model_Retrofitted_Displays__c}"/>
<apex:inputField value="{!school.Display_Size__c}"/>
</apex:pageBlockSection>
<apex:pageBlockSection title="Contact Information" columns="1">
<p class="paraCrunch">
<ul class="beenWorkingOut">
<apex:inputField value="{!school.Maintenance_Contact__c}"/>
<apex:inputField value="{!school.IT_Contact__c}"/>
</ul>
</p>
</apex:pageBlockSection>
<apex:pageBlockSection title="Wrap-Up" columns="1">
<p class="paraCrunch">
Thank you so much for taking the time to meet with me today. We are so excited to get started and look forward to working with you. Are there any questions about the program that you have for me at this time?
</p>
<p class="paraCrunch">
Again, my name is <b>{!$User.FirstName}</b>, and if you have any questions, please contact me at <b>803-380-5538</b>. Or, you can email me at <b>{!$User.Email}</b>.
</p>
</apex:pageBlockSection>
</apex:pageBlock>
<span style="float:right">
<apex:commandButton action="{!save}" value="Save" />
<apex:commandLink onclick="return confirm('Are you sure you want to cancel? All changes will be lost!');" action="{!cancel}" value="cancel"/>
</span><br /><br />
</apex:form>
<br />
<script type="text/javascript">
function confirmCancel() {
return confirm('Are you sure you want to cancel? All changes will be lost!');
}
function addressCopy(b0, b1, b2, b3, s0, s1, s2, s3) {
// Copy billing fields to shipping fields
document.getElementById(s0).value = document.getElementById(b0).value;
document.getElementById(s1).value = document.getElementById(b1).value;
document.getElementById(s2).value = document.getElementById(b2).value;
document.getElementById(s3).value = document.getElementById(b3).value;
// No form submission
return false;
}
function setColorById(id,sColor) {
var elem;
if (document.getElementById) {
if (elem=document.getElementById(id)) {
if (elem.style) {
elem.style.color=sColor;
return 1; // success
}
}
}
return 0; // failure
}
</script>
</apex:page>
I am a beginner developer (really an admin but learning to build VF pages)
I built a page for the Account Object that I now need to move to a Custom Object and reference the Custom Object (School__C) fields.
I cloned the Account page I built and changed out the Account wth School...I must be doing something wrong because I get the error
"School Does Not Exist"
Can someone help?
Code below
<apex:page tabStyle="School__c" standardController="School">
<style >
p {
font-size:16px;
}
.beenWorkingOut {
font-size:16px;
}
.paraCrunch {
margin-left:10%;
margin-right:10%;
}
a {
text-decoration:none;
}
</style>
<apex:pageBlock title="MealViewer Initial Call to Customer Checklist">
<apex:pageBlockSection title="Summary" columns="2">
<apex:outputField value="{!School.Phone}"/>
<apex:outputField value="{!School.Name}"/>
<apex:pageBlockSectionItem />
<apex:pageBlockSectionItem />
<apex:pageBlockSectionItem />
<apex:outputLink onClick="window.open('/{!school.id}')">(View School)</apex:outputLink>
</apex:pageBlockSection>
</apex:pageBlock>
<apex:form >
<span style="float:right">
<apex:commandButton action="{!save}" value="Save" />
<apex:commandLink onclick="return confirm('Are you sure you want to cancel? All changes will be lost!');" action="{!cancel}" value="cancel"/>
</span>
<br /><br /><br />
<span style="float:right; font-size:12px; color:grey;">version 1.0 - revised 2015.04.07</span>
<apex:pageBlock title="Details">
<apex:pageBlockSection title="Introduction" columns="2">
<p class="paraCrunch">
My name is <b>{!$User.FirstName} {!$User.LastName}</b> and I'm going to be taking care of you as your Onboarding Specialist here at MealViewer! Do you have a few minutes?
</p>
<p class="paraCrunch">
<ul class="beenWorkingOut">
<li>Call Summary</li>
<ul>
<li><a id="one1" href="#" style="color:black;" onclick="setColorById('one1','green');return false;">Ask the Questions</a></li>
<li><a id="one2" href="#" style="color:black;" onclick="setColorById('one2','green');return false;">Complete the Form</a></li>
<li><a id="one3" href="#" style="color:black;" onclick="setColorById('one3','green');return false;">Thank the Customer</a></li>
</ul>
</ul>
</p>
</apex:pageBlockSection>
<apex:pageBlockSection title="School Details" columns="2">
<p class="paraCrunch">
<ul class="beenWorkingOut">
<li><a id="two1" href="#" style="color:black;" onclick="setColorById('two1','green');return false;">Review All Account Details</a></li>
<li><a id="two2" href="#" style="color:black;" onclick="setColorById('two2','green');return false;">Verify Current Listed Contacts</a></li>
</ul>
</p>
<apex:pageBlockSectionItem />
<apex:inputField value="{!school.How_Many_Total_Wired_Players__c}"/>
<apex:inputField value="{!school.How_Many_Total_Wireless_Players__c}"/>
<apex:inputField value="{!school.How_Many_Total_Displays__c}"/>
<apex:inputField value="{!school.How_Many_Additional_Digital_Suites__c}"/>
<apex:inputField value="{!school.How_Many_Total_Mounts__c}"/>
<apex:inputField value="{!school.How_Many_Total_Splitters__c}"/>
<apex:inputField value="{!school.Length_between_Displays_for_splitters__c}"/>
<apex:inputField value="{!school.Location_of_Player_in_School__c}"/>
<apex:inputField value="{!school.Make_Model_Retrofitted_Displays__c}"/>
<apex:inputField value="{!school.Menu_Planning_Software_Currently_Used__c}"/>
<apex:inputField value="{!school.Make_Model_Retrofitted_Displays__c}"/>
<apex:inputField value="{!school.Do_They_Have_Different_Serving_Lines__c}"/>
<apex:inputField value="{!school.Serving_Lines_per_Player__c}"/>
<apex:inputField value="{!school.Serving_Line_Name_s__c}"/>
<apex:inputField value="{!school.Cycle__c}"/>
<apex:inputField value="{!school.Cycle_Week__c}"/>
<apex:inputField value="{!school.Customer_Confirmed_Installation_Date__c}"/>
<apex:inputField value="{!school.Desired_Launch_Date__c}"/>
<apex:inputField value="{!school.Installation_Date_Time__c}"/>
<apex:inputField value="{!school.Installation_Area_Type__c}"/>
<apex:inputField value="{!school.Make_Model_Retrofitted_Displays__c}"/>
<apex:inputField value="{!school.Display_Size__c}"/>
</apex:pageBlockSection>
<apex:pageBlockSection title="Contact Information" columns="1">
<p class="paraCrunch">
<ul class="beenWorkingOut">
<apex:inputField value="{!school.Maintenance_Contact__c}"/>
<apex:inputField value="{!school.IT_Contact__c}"/>
</ul>
</p>
</apex:pageBlockSection>
<apex:pageBlockSection title="Wrap-Up" columns="1">
<p class="paraCrunch">
Thank you so much for taking the time to meet with me today. We are so excited to get started and look forward to working with you. Are there any questions about the program that you have for me at this time?
</p>
<p class="paraCrunch">
Again, my name is <b>{!$User.FirstName}</b>, and if you have any questions, please contact me at <b>803-380-5538</b>. Or, you can email me at <b>{!$User.Email}</b>.
</p>
</apex:pageBlockSection>
</apex:pageBlock>
<span style="float:right">
<apex:commandButton action="{!save}" value="Save" />
<apex:commandLink onclick="return confirm('Are you sure you want to cancel? All changes will be lost!');" action="{!cancel}" value="cancel"/>
</span><br /><br />
</apex:form>
<br />
<script type="text/javascript">
function confirmCancel() {
return confirm('Are you sure you want to cancel? All changes will be lost!');
}
function addressCopy(b0, b1, b2, b3, s0, s1, s2, s3) {
// Copy billing fields to shipping fields
document.getElementById(s0).value = document.getElementById(b0).value;
document.getElementById(s1).value = document.getElementById(b1).value;
document.getElementById(s2).value = document.getElementById(b2).value;
document.getElementById(s3).value = document.getElementById(b3).value;
// No form submission
return false;
}
function setColorById(id,sColor) {
var elem;
if (document.getElementById) {
if (elem=document.getElementById(id)) {
if (elem.style) {
elem.style.color=sColor;
return 1; // success
}
}
}
return 0; // failure
}
</script>
</apex:page>
- KellyKanches
- May 05, 2016
- Like
- 0
New to APEX - Help with simple VF page
Hi All,
I am new to APEX in regards to creating VF pages.
I keep getting errors on lines 118 and I can't seem to figure it out. Can someone help me please?
<apex:page tabStyle="Account" standardController="Account">
<style >
p {
font-size:16px;
}
.beenWorkingOut {
font-size:16px;
}
.paraCrunch {
margin-left:10%;
margin-right:10%;
}
a {
text-decoration:none;
}
</style>
<apex:pageBlock title="MealViewer Initial Call to Customer Checklist">
<apex:pageBlockSection title="Summary" columns="2">
<apex:outputField value="{!Account.Phone}"/>
<apex:outputField value="{!Account.Name}"/>
<apex:pageBlockSectionItem />
<apex:pageBlockSectionItem />
<apex:pageBlockSectionItem />
<apex:outputLink onClick="window.open('/{!account.id}')">(View Account)</apex:outputLink>
</apex:pageBlockSection>
</apex:pageBlock>
<apex:form >
<span style="float:right">
<apex:commandButton action="{!save}" value="Save" />
<apex:commandLink onclick="return confirm('Are you sure you want to cancel? All changes will be lost!');" action="{!cancel}" value="cancel"/>
</span>
<br /><br /><br />
<span style="float:right; font-size:12px; color:grey;">version 1.0 - revised 2015.04.07</span>
<apex:pageBlock title="Details">
<apex:pageBlockSection title="Introduction and Product Review" columns="2">
<p class="paraCrunch">
My name is <b>{!$User.FirstName} {!$User.LastName}</b> and I'm going to be taking care of you as your Onboarding Specialist here at MealViewer! Do you have a few minutes?
</p>
<p class="paraCrunch">
<ul class="beenWorkingOut">
<li>Product Summary</li>
<ul>
<li><a id="one1" href="#" style="color:black;" onclick="setColorById('one1','green');return false;">Ask the Questions</a></li>
<li><a id="one2" href="#" style="color:black;" onclick="setColorById('one2','green');return false;">Complete the Form</a></li>
<li><a id="one3" href="#" style="color:black;" onclick="setColorById('one3','green');return false;">Thank the Customer</a></li>
</ul>
</ul>
</p>
</apex:pageBlockSection>
<apex:pageBlockSection title="Account Details" columns="2">
<p class="paraCrunch">
<ul class="beenWorkingOut">
<li><a id="two1" href="#" style="color:black;" onclick="setColorById('two1','green');return false;">Review All Account Details</a></li>
<li><a id="two2" href="#" style="color:black;" onclick="setColorById('two2','green');return false;">Verify Current Listed Contacts</a></li>
<li><a id="two3" href="#" style="color:black;" onclick="setColorById('two3','green');return false;">Add New Contacts (bottom of page)</a></li>
</ul>
</p>
<apex:pageBlockSectionItem />
<apex:inputField value="{!Account.Name}"/>
<apex:inputField value="{!Account.Phone}"/>
<apex:pageBlockSectionItem />
<apex:inputField value="{!Account.Website}"/>
<apex:pageBlockSectionItem />
<apex:inputField value="{!Account.How_Many_Total_Wired_Players__c}"/>
<apex:inputField value="{!Account.How_Many_Total_Wireless_Players__c}"/>
<apex:inputField value="{!Account.How_Many_Total_Displays__c}"/>
<apex:inputField value="{!Account.How_Many_Additional_Digital_Suites__c"/>
<apex:inputField value="{!Account.How_Many_Total_Mounts__c}"/>
<apex:inputField value="{!Account.How_Many_Total_Splitters__c}"/>
<apex:inputField value="{!Account.Length_between_Displays_for_splitters__c}"/>
<apex:inputField value="{!Account.Location_of_Player_in_School__c}"/>
<apex:inputField value="{!Account.Make_Model_Retrofitted_Displays__c}"/>
<apex:inputField value="{!Account.Menu_Planning_Software_Currently_Used__c}"/>
<apex:inputField value="{!Account.Make_Model_Retrofitted_Displays__c}"/>
<apex:inputField value="{!Account.Do_They_Have_Different_Serving_Lines__c}"/>
<apex:inputField value="{!Account.Serving_Lines_per_Player__c}"/>
<apex:inputField value="{!Account.Serving_Line_Name_s__c}"/>
<apex:inputField value="{!Account.Cycle__c}"/>
<apex:inputField value="{!Account.Cycle_Week__c}"/>
<apex:inputField value="{!Account.C Customer_Confirmed_Installation_Date__c}"/>
<apex:inputField value="{!Account.C Customer_Desired_Launch_Date__c}"/>
</apex:pageBlockSection>
<apex:pageBlockSection title="Contact Information" columns="2">
<p class="paraCrunch">
<ul class="beenWorkingOut">
<li><a id="three1" href="#" style="color:black;" onclick="setColorById('three1','green');return false;">Confirm Maintenance Contact</a></li>
<li><a id="three2" href="#" style="color:black;" onclick="setColorById('three2','green');return false;">Confirm IT Contact</a></li>
</ul>
</p>
<apex:pageBlockSectionItem />
<apex:inputField value="{!Account.Maintenance_Contact__c}"/>
<apex:inputField value="{!Account.IT_Contact__c}"/>
<apex:pageBlockSection title="Wrap-Up" columns="1">
<p class="paraCrunch">
Thank you so much for taking the time to meet with me today. We are so excited to get started and look forward to working with you. Are there any questions about the program that you have for me at this time?
</p>
<p class="paraCrunch">
Again, my name is <b>{!$User.FirstName}</b>, and if you have any questions, please contact me at <b>803-380-5538</b> . Or, you can email me at <b>{!$User.Email}</b>.
</p>
</apex:pageBlockSection>
</apex:pageBlock>
<span style="float:right">
<apex:commandButton action="{!save}" value="Save" />
<apex:commandLink onclick="return confirm('Are you sure you want to cancel? All changes will be lost!');" action="{!cancel}" value="cancel"/>
</span><br /><br />
</apex:form>
<br />
<apex:pageBlock title="Contacts">
<apex:form >
<apex:commandButton value="New Contact" onclick="window.open('/setup/ui/recordtypeselect.jsp?ent=Contact&retURL=%2F{!account.id}&save_new_url=%2F003%2Fe%3FretURL%3D%252F{!account.id}%26accid%3D{!account.id}');"/>
<apex:pageBlockTable title="Contacts" value="{!account.contacts}" var="item">
<apex:column >
<apex:outputLink value="/{!item.id}" target="_blank">{!item.name}</apex:outputLink>
</apex:column>
<apex:column value="{!item.Title}"/>
<apex:column value="{!item.Email}"/>
<apex:column value="{!item.Primary_Contact__c}"/>
<apex:column value="{!item.Authorized_User__c}"/>
<apex:column value="{!item.Inactive__c}"/>
</apex:pageBlockTable>
</apex:form>
</apex:pageBlock>
<script type="text/javascript">
function confirmCancel() {
return confirm('Are you sure you want to cancel? All changes will be lost!');
}
function addressCopy(b0, b1, b2, b3, s0, s1, s2, s3) {
// Copy billing fields to shipping fields
document.getElementById(s0).value = document.getElementById(b0).value;
document.getElementById(s1).value = document.getElementById(b1).value;
document.getElementById(s2).value = document.getElementById(b2).value;
document.getElementById(s3).value = document.getElementById(b3).value;
// No form submission
return false;
}
function setColorById(id,sColor) {
var elem;
if (document.getElementById) {
if (elem=document.getElementById(id)) {
if (elem.style) {
elem.style.color=sColor;
return 1; // success
}
}
}
return 0; // failure
}
</script>
</apex:page
I am new to APEX in regards to creating VF pages.
I keep getting errors on lines 118 and I can't seem to figure it out. Can someone help me please?
<apex:page tabStyle="Account" standardController="Account">
<style >
p {
font-size:16px;
}
.beenWorkingOut {
font-size:16px;
}
.paraCrunch {
margin-left:10%;
margin-right:10%;
}
a {
text-decoration:none;
}
</style>
<apex:pageBlock title="MealViewer Initial Call to Customer Checklist">
<apex:pageBlockSection title="Summary" columns="2">
<apex:outputField value="{!Account.Phone}"/>
<apex:outputField value="{!Account.Name}"/>
<apex:pageBlockSectionItem />
<apex:pageBlockSectionItem />
<apex:pageBlockSectionItem />
<apex:outputLink onClick="window.open('/{!account.id}')">(View Account)</apex:outputLink>
</apex:pageBlockSection>
</apex:pageBlock>
<apex:form >
<span style="float:right">
<apex:commandButton action="{!save}" value="Save" />
<apex:commandLink onclick="return confirm('Are you sure you want to cancel? All changes will be lost!');" action="{!cancel}" value="cancel"/>
</span>
<br /><br /><br />
<span style="float:right; font-size:12px; color:grey;">version 1.0 - revised 2015.04.07</span>
<apex:pageBlock title="Details">
<apex:pageBlockSection title="Introduction and Product Review" columns="2">
<p class="paraCrunch">
My name is <b>{!$User.FirstName} {!$User.LastName}</b> and I'm going to be taking care of you as your Onboarding Specialist here at MealViewer! Do you have a few minutes?
</p>
<p class="paraCrunch">
<ul class="beenWorkingOut">
<li>Product Summary</li>
<ul>
<li><a id="one1" href="#" style="color:black;" onclick="setColorById('one1','green');return false;">Ask the Questions</a></li>
<li><a id="one2" href="#" style="color:black;" onclick="setColorById('one2','green');return false;">Complete the Form</a></li>
<li><a id="one3" href="#" style="color:black;" onclick="setColorById('one3','green');return false;">Thank the Customer</a></li>
</ul>
</ul>
</p>
</apex:pageBlockSection>
<apex:pageBlockSection title="Account Details" columns="2">
<p class="paraCrunch">
<ul class="beenWorkingOut">
<li><a id="two1" href="#" style="color:black;" onclick="setColorById('two1','green');return false;">Review All Account Details</a></li>
<li><a id="two2" href="#" style="color:black;" onclick="setColorById('two2','green');return false;">Verify Current Listed Contacts</a></li>
<li><a id="two3" href="#" style="color:black;" onclick="setColorById('two3','green');return false;">Add New Contacts (bottom of page)</a></li>
</ul>
</p>
<apex:pageBlockSectionItem />
<apex:inputField value="{!Account.Name}"/>
<apex:inputField value="{!Account.Phone}"/>
<apex:pageBlockSectionItem />
<apex:inputField value="{!Account.Website}"/>
<apex:pageBlockSectionItem />
<apex:inputField value="{!Account.How_Many_Total_Wired_Players__c}"/>
<apex:inputField value="{!Account.How_Many_Total_Wireless_Players__c}"/>
<apex:inputField value="{!Account.How_Many_Total_Displays__c}"/>
<apex:inputField value="{!Account.How_Many_Additional_Digital_Suites__c"/>
<apex:inputField value="{!Account.How_Many_Total_Mounts__c}"/>
<apex:inputField value="{!Account.How_Many_Total_Splitters__c}"/>
<apex:inputField value="{!Account.Length_between_Displays_for_splitters__c}"/>
<apex:inputField value="{!Account.Location_of_Player_in_School__c}"/>
<apex:inputField value="{!Account.Make_Model_Retrofitted_Displays__c}"/>
<apex:inputField value="{!Account.Menu_Planning_Software_Currently_Used__c}"/>
<apex:inputField value="{!Account.Make_Model_Retrofitted_Displays__c}"/>
<apex:inputField value="{!Account.Do_They_Have_Different_Serving_Lines__c}"/>
<apex:inputField value="{!Account.Serving_Lines_per_Player__c}"/>
<apex:inputField value="{!Account.Serving_Line_Name_s__c}"/>
<apex:inputField value="{!Account.Cycle__c}"/>
<apex:inputField value="{!Account.Cycle_Week__c}"/>
<apex:inputField value="{!Account.C Customer_Confirmed_Installation_Date__c}"/>
<apex:inputField value="{!Account.C Customer_Desired_Launch_Date__c}"/>
</apex:pageBlockSection>
<apex:pageBlockSection title="Contact Information" columns="2">
<p class="paraCrunch">
<ul class="beenWorkingOut">
<li><a id="three1" href="#" style="color:black;" onclick="setColorById('three1','green');return false;">Confirm Maintenance Contact</a></li>
<li><a id="three2" href="#" style="color:black;" onclick="setColorById('three2','green');return false;">Confirm IT Contact</a></li>
</ul>
</p>
<apex:pageBlockSectionItem />
<apex:inputField value="{!Account.Maintenance_Contact__c}"/>
<apex:inputField value="{!Account.IT_Contact__c}"/>
<apex:pageBlockSection title="Wrap-Up" columns="1">
<p class="paraCrunch">
Thank you so much for taking the time to meet with me today. We are so excited to get started and look forward to working with you. Are there any questions about the program that you have for me at this time?
</p>
<p class="paraCrunch">
Again, my name is <b>{!$User.FirstName}</b>, and if you have any questions, please contact me at <b>803-380-5538</b> . Or, you can email me at <b>{!$User.Email}</b>.
</p>
</apex:pageBlockSection>
</apex:pageBlock>
<span style="float:right">
<apex:commandButton action="{!save}" value="Save" />
<apex:commandLink onclick="return confirm('Are you sure you want to cancel? All changes will be lost!');" action="{!cancel}" value="cancel"/>
</span><br /><br />
</apex:form>
<br />
<apex:pageBlock title="Contacts">
<apex:form >
<apex:commandButton value="New Contact" onclick="window.open('/setup/ui/recordtypeselect.jsp?ent=Contact&retURL=%2F{!account.id}&save_new_url=%2F003%2Fe%3FretURL%3D%252F{!account.id}%26accid%3D{!account.id}');"/>
<apex:pageBlockTable title="Contacts" value="{!account.contacts}" var="item">
<apex:column >
<apex:outputLink value="/{!item.id}" target="_blank">{!item.name}</apex:outputLink>
</apex:column>
<apex:column value="{!item.Title}"/>
<apex:column value="{!item.Email}"/>
<apex:column value="{!item.Primary_Contact__c}"/>
<apex:column value="{!item.Authorized_User__c}"/>
<apex:column value="{!item.Inactive__c}"/>
</apex:pageBlockTable>
</apex:form>
</apex:pageBlock>
<script type="text/javascript">
function confirmCancel() {
return confirm('Are you sure you want to cancel? All changes will be lost!');
}
function addressCopy(b0, b1, b2, b3, s0, s1, s2, s3) {
// Copy billing fields to shipping fields
document.getElementById(s0).value = document.getElementById(b0).value;
document.getElementById(s1).value = document.getElementById(b1).value;
document.getElementById(s2).value = document.getElementById(b2).value;
document.getElementById(s3).value = document.getElementById(b3).value;
// No form submission
return false;
}
function setColorById(id,sColor) {
var elem;
if (document.getElementById) {
if (elem=document.getElementById(id)) {
if (elem.style) {
elem.style.color=sColor;
return 1; // success
}
}
}
return 0; // failure
}
</script>
</apex:page
- KellyKanches
- April 21, 2016
- Like
- 0