Visualforce relates to questions where the Visualforce language or framework are concerned. This is primarily VF pages, components, PDF rendering, and email templates. This would only cross-over to Lightning where Lightning Out (Lightning for VF) or VF pages using SLDS or being used in LEX. Where a ...

learn more… | top users | synonyms (2)

2
votes
1answer
34 views

Make a button on visualforce update the records in an object

I have a custom object named "O1". It have 5 fields, namely 1.) Address 2.) Name 3.) Email 4.) Phone Number 5.) Age I have created a custom VF page and shown these fields on that page. Now, I ...
3
votes
2answers
101 views

Explain css syntax .apexp .detailList .list td

I am reviewing someone else's css on a VF page. I do not understand the syntax: .apexp .detailList .list td { color: white; } I know it sets the td to white, but can someone explain how to ...
0
votes
0answers
16 views

Redirect to freshdesk.com from Salesforce.com

I am trying to redirect to Freshdesk.com from Visualforce link. I have Name,Email and Hashcode to redirect and login to the freshdesk.com http://sample.freshdesk.com/?name=Arun+Bhatia&email=Arun....
3
votes
1answer
17 views

Set Default emailBody to apex:emailpublisher in HTML Format

I've tried to set default value to emailBody attribute of the apex:emailpublisher component with an HTML value along with setting emailbodyformat to "HTML", but when I opened the console it renders ...
0
votes
2answers
21 views

I have a geoloaction field on account but i am not getting how to fetch map on the basis of geolocation [on hold]

my field name is location on account and how can i get a map displayed upon it. I am creating vf page which contains geolocatiobn but how can i get map displayed
0
votes
1answer
24 views

When I use lightning component in visualforce page I get Error on my visualforce page

I am stuck, when I use my lightning component in visualforce page it work fine until i am not using prefix name in visualforce page. When i use prefix name then it will show error"Something has gone ...
3
votes
2answers
28 views

<apex:SelectList > required =true attribute is not rendered in the underlying HTML

I have a <apex:selectList> (multiselect) tag and I have set required attribute to true. I then set docType="html-5.0"at page level so that I can take advantage of html5 validations. ...
1
vote
1answer
17 views

Exposing Standard pages and standard record view page in salesforce sites

Can we/ How to expose these standard pages, standard record view in salesforce sites ?
1
vote
1answer
29 views

VisualForce : Dynamically rerendered inputFields are displaying on page without labels

Background: I created a VisualForce page with the intention of embedding it inline into an Opportunity layout. I've used the standard Opportunity controller with a controller extension. On this ...
1
vote
2answers
28 views

Populate A Field in a Visualforce Page Using ActionRegion [on hold]

I have a VF page that contains 2 text fields. What I am trying to do is populate Field2 with the value from Field1 when Field1 is entered, but do so in real time (i.e., using actionRegion & ...
2
votes
0answers
27 views

Changing the width and height of image

I am using a visualforce page to save a record which has a Name field and a rich text area type field in it. I am using inputfield tag to get the data from user and save the record. The user has the ...
0
votes
1answer
17 views

Getting Error: Content cannot be displayed: Subscript value 5 not valid. Must be between 0 and 4 When trying to create pageBlockTable from a List

Here is my .cls public List<List<String>> getObjectList() { //StructuralInfo_with_RoofSections acct; List<List<String>> arrList = new List<List<String>>(); ...
0
votes
0answers
14 views

Error when Others Try to Install my Unmanaged Package

So I just finished developing/testing my unmanaged package-consisting of a vf page and apex classes/test classes and a controller, and uploaded it to Salesforce. When I have others download and ...
0
votes
1answer
22 views

call javascript api within apex controller

I am using the GoogleMaps JS Api and I'm looking to cleanse addresses. Is it possible for me to call this via a controller or do I need to do it within the browser? I can use this to pass parameters ...
2
votes
1answer
35 views

Post to chatter from custom apex controller

As the title suggests I have a visualforce page, and a custom apex controller. I created a global action with the page and added it to the global layout. The intention is to have the user, from their ...
-5
votes
0answers
24 views

I'm scanning books, When books are added sound must be produced after getting sucess message. I'm unable to get the sound [on hold]

<apex:page controller="OrderFulfill" sidebar="false" id="page" tabStyle="Orders__c"> <html> <title>Print Test Page</title> <style type="text/css"> .outBorder { ...
0
votes
2answers
14 views

Command button action without a form? [duplicate]

I'm trying to remove an apex form object from my visualforce page. All it does is wrap a commandButton like so: <apex:form > <apex:commandButton value="customAction" action="{!customAction}"/...
1
vote
2answers
14 views

VF Test Class: Pass id to controller at start

My visualforce page is opened via button on a custom object called Employee. Here is the button code: Behavior - Execute JavaScript OnClick JavaScript window.location = 'apex/EmpMerge?hbsId={!...
1
vote
1answer
12 views

“Client Cross Frame Scripting Attack” flagged by Checkmarx scanner

I have a page where the users can click a link which opens a popup window to start the OAuth connection/flow. However this page is getting flagged by the Checkmarx scanner as a possible "Client Cross ...
2
votes
1answer
14 views

Salesforce Classic / Inline VisualForce Page - Can an inline VF page be edited while editing the main record (at the same time)?

Pretty simple question I think - but I googled it and searched for it on Salesforce stack to no avail so far. I have an inline VisualForce page (using the standard controller obviously) that sits ...
1
vote
1answer
19 views

Grey Out Area Using Visualforce

How can I grey out a whole pageblock using Visualforce? This is to give user the idea that all records contained in an area are locked and can't be edited. Meanwhile, here's my vf page: <apex:page ...
1
vote
3answers
32 views

Display SOQL result in a visualforce page

I have an SOQL query that assigns values to strings and then puts them up on a website. Here what I've got for a method: public void gennumber2(){ List<Service_Instance__c> Servic = ...
0
votes
1answer
27 views

onclick event to show number of accounts

I have a commandButton, and I'd like to use the onclick event to show a list of Account records avaliable in my org. How can I do this without using a controller? <apex:page> <script> ...
0
votes
2answers
19 views

Attempt to de-reference a null object

Can anyone please help me with the code below and why I am getting a null exception public with sharing class activitiesdashboard { public list<Transport__c> activities {get; set;} ...
0
votes
0answers
19 views

how to trigger an event based on visual force page new version deployment

We are trying to build a tooltip navigator on VF page which will help the users to get a navigator demo for the first time once demo is completed we will be turning this off on the user level, but on ...
1
vote
1answer
14 views

Quick Action - Visualforce - Header missing after Summer 16 (Bug)

I have a Visualforce page that was created prior the Summer '15 release and was being used as a target of a quick action for SF1 on a custom object. Everything has been working fine until the Summer '...
1
vote
1answer
12 views

visualforce page to list cases by contact using 'case.AccountId' for Person Account - Lightning Design

I have a business use case demand to show a list of Cases for the current associated Contact on the Case Feed in Service Console. I was able to achieve this with the below VisualForce Page: I was ...
1
vote
2answers
24 views

Custom Account Create Page - Filter Record Types

I have built a page that basically mimics the Account create page. The page uses an extension to retrieve the Record Types for selection. I have 2 questions... How do I filter the Record Type ...
-1
votes
1answer
29 views

Adding multiple markers on google map - not working [on hold]

The below is giving me an error: OVER_QUERY_LIMIT VisualForce: <apex:page controller="clsMultipleMarker" sidebar="false"> <script type="text/javascript" src="https://maps.google....
4
votes
2answers
199 views

Controller object not updating fast enough

I have a list of booleans, and some checkboxes. When a checkbox is clicked, a corresponding index in the boolean list is changed to true/false. My issue is that if the checkboxes are clicked too fast, ...
0
votes
1answer
27 views

commandbutton on a vf page inside a section

I put a "new " button inside a vf page and after I inserted that vf page inside a section on the Account page layout. When a user click new, has to be redirected on the custom Object Referente ...
0
votes
1answer
34 views

How to display the related contact Records when Account record is selected in the same page

I want to display the child records in a pageblock table when the parent id is selected. I am generating the list of Account record on a page load and displayed the account records in a datatable and ...
0
votes
1answer
32 views

Problem with an OnClick JavaScript webservice

I have created a button, using the custom button form, that is supposed to run a certain method, but instead I get the following error: A problem with the OnClick JavaScript for this button or ...
1
vote
1answer
33 views

Invoking apex by click button on related list of custom objects on custom object

I have a o problem with invoke controller class, after click button on related list. I tried do this with JS - var result = sforce.apex.execute("MyClass", "myMethod",{customObjectId: customObjectId}) -...
1
vote
1answer
32 views

apex:repeat not iterating for null value

Corrected VF code: <apex:pageBlock ><br/> <style> TABLE { empty-cells: show } </style> <apex:outputpanel style="height:Auto;" layout="block"...
0
votes
0answers
19 views

Visual Force Component [on hold]

How to Create a Component field attribute for address in Account field in salesforce,for below component attribute , how to create in salesforce,I am New to Visual Force component , please send code ...
0
votes
0answers
12 views

Strange Related List Error on Visualforce page

I have a visualforce page on a custom object that redirects to several visualforce pages based on record type and profile of the user. For two out of three of the conditions, it works great. For the ...
0
votes
0answers
16 views

How we can call httppost from other sandbox

I have written one post method to insert record in salesforce. I want to do testing that code. Now, I have plan to build some visualforce or javascript page in other sandbox to call that post method. ...
0
votes
1answer
16 views

Switch to an “App” when viewing a custom visualforce page?

I have an App configured (with my Logo setup) and the app has some standard tabs, etc. I also have a button that the user can click from any Account record which takes them to a custom visualforce ...
4
votes
0answers
26 views

Error when setting “rendered” attribute on apex:mapMarker

I am trying to show/hide some map markers on an <apex:map> by assigning a boolean value coming from an Apex attribute to the rendered tag. However, I am receiving a compile error on save: ...
1
vote
0answers
14 views

Create a VisualForce page for only classic

I would like to create a VisualForce page that shows on a Contact record, however, I only want it to show while the user is in Classic mode. I have tried using $User.UIThemeDisplayed to render the ...
4
votes
1answer
22 views

Remove disabled attribute from command button

I have a command button given below <apex:commandButton action="{!save}" id="save" value="Save" onclick="disableOnSubmit(this);" onComplete="buttonEnabled(this);"/> When I click this button ...
2
votes
1answer
61 views

Syntax error with Visualforce expression evaluation

I have a Visualforce page which displays values from methods in its custom controller. The two static methods are called getJanuaryNBYTD() and getJanuaryCount() and they are set on the vf page. I am ...
0
votes
1answer
28 views

Visualforce page with custom conroller not available for button

I found many related articles on this, but the details of my situation don't seem to line up with the common queries. I have a VF Page that I want to pull information from via the current account. So,...
0
votes
0answers
15 views

how to resize inlineedit selection area in visualforce page

My code is : <apex:outputField value="{!C_Object_Process__c.C_Item_TR_SchoolsResume__c}" > <apex:inlineEditSupport showOnEdit="saveButton" event="ondblclick" /> </apex:outputField&...
0
votes
0answers
24 views

How to set value of controller's variable from javascript ? [duplicate]

I have a javascript function which has to set a value of variable in my controller based on user input in confirm() dialog box. This is my code function alertMessage(){ var hop_size =...
2
votes
1answer
19 views

How to show complete record in vf page and use javascript [on hold]

I have a requirement to add javascript pop-up validation to a custom object and not use validation. I am thinking that if I just show the record in a vf page I can add javascript to it. Is it ...
0
votes
1answer
22 views

How controller extension is updating record

Apex Page : <apex:page standardController="account" extensions="RandomWorkSpace_Ext_Cntrl" > <!—note the extensions attribute above --> <apex:sectionHeader title="Account ...
-1
votes
0answers
25 views

Wrapper Class not working on collection of 3 objects

Wrapper class not working, the listwrap has value but nothing showing up in vf page. please advice. below is the controller & vf page. This is to print 3 object records in same table. Controller ...
3
votes
1answer
17 views

Cancel Button Event Throwing a Required field Validation Error

When i am clicking on cancel button, validation error for required name field is thrown. As per my understanding when we click an action method : 1. entire form is submitted 2. Its checked for ...