The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
17 views

Increase PDF height to show in one page

I have an HTML used Apex page which has renderas PDF tag for PDF conversion. But the content is too long and coming in two pages. I need to keep it in one Page. Can someone suggest a solution? Apex ...
0
votes
1answer
14 views

font color not working for Apex renderas PDF page

I have below code where I need a rectangular box with text in white inside it. Box shows fine but text fails to read color #FFFFFF. Can someone please help? <div id="rectangle" ...
0
votes
0answers
21 views

PDF Generation failed error for HTML Apex page

I have below HTML used apex page which encounters PDF Generation failed error. Can someone help me here? Apex Page <apex:page showHeader="false" standardStylesheets="false" sidebar="false" ...
0
votes
1answer
20 views

video not displaying on the the vfpage

Video not display on the page <apex:page docType="html-5.0"> <head> <script src="//api.html5media.info/1.1.8/html5media.min.js"></script> ...
2
votes
1answer
14 views

standardStylesheets attribute doesn't work properly

I can't get it work as it should. The code rendered even for an empty page: <apex:page standardStylesheets="false" standardController="Opportunity"> </apex:page> Includes: <link ...
0
votes
2answers
25 views

Fetch User input value to class [closed]

I want to have an User input value from Apex page into class and put it in a string. Can someone show me the way to do it?
0
votes
1answer
25 views

Change Salesforce Error Messages?

Currently when Apex code on a VisualForce page throws an exception the user is shown what line of code threw the exception and some other information. I want to change this to show a custom error ...
0
votes
1answer
12 views

Difference fields are displyed before and after creation

In lead object , when I click new to create a new record it calls a vf page (handled by custom button by calling a vf page in 'New ' button). At the time of creation , in one section it is showing 10 ...
0
votes
1answer
38 views

Why are my HTML tables and CSS missing from Sandbox to Production on VisualForce Page

My HTML table components are missing in my production environment. Is there anything I have to do to make these visible? Everything is visible and working in sandbox. Sandbox Production
0
votes
1answer
107 views

Fail to send email by utility class

I have below utility class which throws error as this in debug log. Error INVALID_FIELD_WHEN_USING_TEMPLATE: When a template is specified, the plain text body, html body, subject, charset, and ...
0
votes
1answer
32 views

Override the base target=“_top” for link in visualforce page

There are lot of links in my page. Of which most of them are to be opened in the same tab so, i have set the base target="_top" but For particular columns of link i need to open them in new tab. ...
0
votes
1answer
48 views

Display warning message in page

I need to know how to be able to display the following warining message in salesforce page: There is an existing Merchant: corresponding account.Id for this Lead: corresponding objLead.Id_ in ...
0
votes
2answers
42 views

Display warning messageq

I would like to know how to be able to display a warning message in a page. I have created my own custom visual force page: <apex:page standardController="Lead" ...
2
votes
1answer
52 views

How create custom login page without check a security token

I need created custom login page for my mobile app without using token. I considered the following solutions: ...
-2
votes
1answer
27 views

vf page color setting

I have below page code where I need to color the whole page with color code #FFFECC. Can someone please help? Page: <apex:page Controller="test_k" showHeader="false" sidebar="false" > ...
1
vote
2answers
27 views

Embed a page on a standard built-In object layout

I have a page in a managed package and I want to embed it within the standard lead detail view. One way to do this is something like this (taken from here): From the object management settings for ...
0
votes
0answers
20 views

Rendering PDF from a picklist and button

So I'm made a VF page, that displays a record accordingly. I have another list of related other records that display on the picklist off to the side. Is there a way I can program a button that queries ...
0
votes
0answers
19 views

Select option in pie chart color

I have a requirement to show a color picker by pie chart approach where I need to capture the selected color option by logged in user. I have below code snippet but how to capture user click on a ...
1
vote
1answer
56 views

How to display month name for specific bar?

I want to display month name in the last bar alone.i need output like but am getting output like this.how to add month in the last bar apex code: public with sharing class Rfleet_VFPageReport { ...
1
vote
1answer
20 views

How can I delete an existing page in the Community Builder?

At the Community Builder, how can I delete an existing page? I've been looking through the following UIs but didn't find a button, link or menu for that:
3
votes
1answer
153 views

How to call a PageReference from a Constructor

I have this following apex: public class SampleController { public SampleController(){ //I want to call the the samplepage() here. } public PageReference samplepage(){ ...
1
vote
2answers
26 views

I created a vfpage and added a save button. when I am updating a record and click on save I get following error message:

System.DmlException: Update failed. First exception on row 0 with id 003i0000001ZHIvAAO; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, You can not save an existing record without email.
1
vote
1answer
37 views

Visual force page - SObject row was retrieved via SOQL without querying the requested field

I have a very basic question, regarding I believe addFields. Typically I would take the time to learn by reading around and testing how that works but I have just deployed my first page ever into my ...
0
votes
1answer
62 views

Is there any way get the customer chat window in the same window. rather it open in different window .like i want like live agent popup

I want customer chat in the same window rather it open in new window .I don't want to open in separate window it will happen in same window . like popup chat window
0
votes
1answer
69 views

Related to apex data table and javascript

I have apex data table with 5 rows of data. i have a checkbox and picklist as 2 columns and remaining columns as well. if checkbox is checked and picklist value selected as 'Yes' for all the rows and ...
-3
votes
1answer
25 views

How to invoke controller method from vf page on form submission?

VF Page Code : <apex:page showHeader="false" sidebar="false" doctype="html-5.0" standardStylesheets="false" controller="Rforce_ESWebtoCase_CTR"> <head> <link ...
0
votes
0answers
14 views

Invoke cancel method in script to return to Listview

I have below piece of script code in a vf page . From List view , a click on a List button navigates to the mentioned page where I had to hard code the list ID to return for a specific condition.Now ...
1
vote
0answers
34 views

trigger doesn't increase static value

I have Company class with static field total_amount public class Company{ public String name = 'BazuBazu'; public static Decimal total_amount = 6; } I have my custom object Employee. I have ...
0
votes
1answer
51 views

How can i call my Apex class from visualforce?

I created Apex class with static field. I would like to use it as a value in on my custom visualforce page. On that page I use my custom controller as well. How can i access this field? ...
0
votes
1answer
35 views

I can't access static apex field in my visualforce custom page

I am newby. I've got my custom page: <apex:page controller="opportunityList2Con"> <apex:form > <apex:pageBlock > <apex:pageBlockTable value="{!employees}" var="o" > ...
1
vote
2answers
60 views

RadioButton allows to choose more then 1 option from list

I have simple custom page: <apex:page controller="opportunityList2Con"> <apex:form > <apex:pageBlock > <apex:pageBlockTable value="{!employees}" var="o" > ...
0
votes
1answer
32 views

Why apex method doesnt work on visualforce page?

I am a beginner in the salesforce world. I have my page: <apex:page controller="opportunityList2Con"> <apex:pageBlock > <apex:pageBlockTable value="{!employees}" ...
0
votes
1answer
33 views

where to include resource script for sforce connection?

I am getting the following error when I include resource script for sforce connection "Error: Function REQUIRESCRIPT may not be used in this type of formula". Please provide me a solution and thanks ...
-1
votes
2answers
52 views

How can I consume wsdl method output through VF page?

Below is my consumed WSDL. Testing in developer console using Execute Anonymous Window I got output. I need to get same output through visual force page. How do I return the output to display it in a ...
0
votes
1answer
20 views

sforce.connection not working in sites

I have created object using javascript itself without using controller. It is done by using var cas = new sforce.SObject("Case"); cas.Type = document.getElementById("Type").value; (mapping the ...
0
votes
1answer
28 views

How to overcome “HTTPS security is compromised by ” error in visualforce?

<apex:page standardController="Case" showHeader="false" sidebar="false" standardStylesheets="False" id="pge"> <head> <link rel="stylesheet" ...
1
vote
3answers
70 views

Display three fields based upon a value in a particular picklist

I have a requirement in which when I select a particular value from a picklist,three new fields should pop up and need to be mandatory.These fields should pop up only when a value is selected from ...
-3
votes
1answer
31 views

how to avoid overlapping on submit?

Here is my code : <apex:page standardController="Case" showHeader="false" sidebar="false" standardStylesheets="False" id="pge"> <head> <link rel="stylesheet" ...
1
vote
1answer
42 views

How to find the mulitple file sizes using javascript [closed]

<apex:page standardController="Case" showHeader="false" sidebar="false" standardStylesheets="False" id="pge"> <head> <link rel="stylesheet" ...
0
votes
1answer
52 views

how to use immediate attribute in data table command button?

I tried to create account records using datable.Its worked fine when the command button is .But using immediate button in the command button (i.e)its not working VF <apex:page ...
0
votes
2answers
63 views

how to display error message within pageblock?

the error message was shown initially when model ,discount values are not entered. after entering the values and clicking save button the values are inserted but my page redirects to another page ...
-1
votes
1answer
43 views

Querying recent Contact for the Owner of User logged in

Hi This query doesnt work for me, I dont know what I am missing that I cant query the recent Contact's entry by user that just logged in to salesforce account. Id accountid = userinfo.getProfileId(); ...
0
votes
1answer
79 views

how to make a inputfield as required?

i have two table.one with apex tag another with HTML tag.in the both table i need my fields as required.eg:i want to make my input field as required.so am giving required="true" in .but while giving ...
-2
votes
1answer
49 views

how to pass the case id from controller to visualforce page

I am creating a case by initiating in the controller. I need to pass the case id for attaching the attachment through vf page. Please provide the syntax to do that. Edit: Code added Case c = new ...
3
votes
1answer
72 views

Wait execution in apex controller

I have a requirement to wait before calling a batch class from controller. can someone provide me some wait or poll kind of statements before I execute below lines? That will wait code execution to ...
1
vote
1answer
20 views

Issue of type casting

I have below statement throwing String Exception. selRepId = ApexPages.currentPage().getParameters().get('RepId'); Here selRepId is a Public getter setter set ID field. Is the issue like string to ...
1
vote
0answers
25 views

how can we hardcore profiles into the code to unlock a record in a VF page

We have a VF page where , if all the details are filled and submit for approval, then the record is locked. But i want few profiles to be able to edit the locked record and make changes. How to ...
0
votes
1answer
41 views

javascript code in apex page

I have a check in apex page with javascript code as below under script tags. var proli ="{! $Profile.Name }"; //alert(proli); if(proli=='Abbott DM' || proli=='Field Profile' ) { ...
-2
votes
1answer
43 views

Rerender not working after first time

I need to refresh a separate pageblock by keeping another pageblock as it is. I am having a picklist in a pageblock and it contains 1 to 10. If I select first time that pageblock only gets refreshed ...
0
votes
3answers
156 views

how to disable a button?

I have two command buttons like "save" and "delete". If i click the save button then the "delete" button should disabled. vf <apex:page > <apex:form > <script ...