Questions tagged [visualforce]

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 question relates to Apex invoked as part of a VF page, this tag would also be appropriate.

Filter by
Sorted by
Tagged with
4
votes
0answers
27 views

Sporadic “Insufficient Privileges”

We sometimes receive screen shots from business users indicating they are seeing "Insufficient Privileges" errors. These errors come up in a variety of contexts, but they appear to mostly be ...
1
vote
1answer
38 views

Page Reference issue in Lightning

I have a command link button on Account page (Create Account). As soon as a user clicks on the button, an edit page gets populated to fill the details. Once the details are filled and hit the save ...
0
votes
0answers
35 views

Error when I try to create OrderItem records Insert failed. INVALID_CROSS_REFERENCE_KEY

I'm trying to create a visualforce page where a user can create multiple OrderItem records at the same time. The error that I get is OrderItem records Insert failed. First exception on row 0; ...
0
votes
0answers
13 views

Popup backdrop is not showing blur when LWC is invoked from VF Page.It works fine when invoked directly without VF page

I am invoking LWC from VF page and showing popup with list of contacts.Issue is Popup backdrop is not showing blur like how it opens when we invoke LWC directly.As it is lightning behaviour I believe ...
0
votes
1answer
26 views

How to navigate(to list view/recordpage) when Component(Aura/LWC) is invoked from vf page

I am invoking AuraComponent from vf page and displaying selected contacts.Now on click of cancel button in component I tried to use Navigation mix and force:navigatetoSobject to navigate to listview/...
-2
votes
1answer
29 views

Render PDF for Apex Page return “PDF failed to generate” when soql row is 0

I'm having trouble trying to render PDF page when there no record return for SOQL but work perfectly fine if I add a record to the look-up field I do have additional content besides this table if ...
0
votes
0answers
17 views

How to restrict sales-person to download the Quote Document?

I want to restrict the sales-person from downloading the Quote documents in Salesforce CPQ. After the sales-person clicks on [Generate Document] button from quote page,it redirects to Generate ...
0
votes
2answers
44 views

How to get related list of child account to parent account that has self-relationship? [closed]

I have a use case where we have Account record and every account has a self relationship with account itself. I need to display the related list of child accounts contracts/subscriptions on the master ...
0
votes
0answers
19 views

Muliple date picker [closed]

I'm trying to make a multiple date picker on a visualforce page, where i can choose 2 dates on the calendar and it will query the database for the range between the 2 dates, and i'm having a hard time ...
0
votes
0answers
17 views

Get Field Value of next Record in Visualforce Page

I have a below scenario, I have a case object were on page I trying to display the related field values. But for one field called SRF, I need to look on next record. For Example: Case 1 -----------...
0
votes
0answers
18 views

getUrl in preview org as guest user

I started testing on a preview scratchorg and found that the following line would result in the " is down for maintenance" error on the site. ApexPages.currentPage().getUrl(); getParameters instead ...
0
votes
0answers
29 views

Error 500 when logging in [closed]

We are trying to set up a sandbox that mimicks the current log-in, set up before last september, and which takes users from our CMS to a VF "success" page which is then meant to redirect back. It ...
0
votes
0answers
25 views

VF page to display list view records not getting saved

I have created list view button on Account. Following is the code but the Visual Force page is giving error while saving 'Unknown Property selacclst referenced in standardListPage' Apex class: ...
0
votes
0answers
23 views

IFrame panel is not rendering on Safari

I am rendering my application inside iFrame as a visual force page. It is working well on chrome and Firefox. But not rendering on Safari. I don't see any external call to external endpoint to render ...
2
votes
1answer
14 views

Visualforce Page need authentication in Sites created in Lightning

I have two Visualforce pages displayed as PDF in a Lightning component which is eventually retrieved as a Site. However, it requires the authentication when external users try to access the VF page. ...
0
votes
1answer
24 views

Is it possible to dynamically resize the height of a page embedded Visual Force page?

I have a Visual Force page that has different amounts of content based on how much information is entered into the controlling fields. Instead of setting a static height, I'd like to be able to ...
1
vote
0answers
19 views

Error using inline Embedded Login

I have a SFDC Community, which has its own Visualforce login page. I have another application running in a cloud host, and I'm trying to use embedded login to authenticate in my community in this ...
0
votes
1answer
28 views

List has no rows for assignment to SObject . if i am passing hard code id its working fine

Page: <apex:page controller="documentForEmail" sidebar="false" > <apex:form > <br></br> <apex:pageBlock > <apex:pageBlockSection > <apex:...
0
votes
0answers
29 views

How to put multiple Id into get parameters method

I want to display a table in pdf. I am passing multiple id into the Visualforce page from apex class but each time the id is overridden and the last id is passed into the VF page. Below are the two ...
0
votes
1answer
26 views

Using Param in ActionFunction - Unexpected Token ':'

Using a simple action function and param to pass a value to a controller, but receiving the following in the browser. Uncaught SyntaxError: Unexpected token ':' Exception caught on ':' in ...
0
votes
1answer
18 views

Troubleshooting Site Guest User Access after enabling “Secure Guest User Record Access”

Unexpected problems with email alerts after users enabled "Secure Guest User Record Access." Here are my notes on how I finally worked it out.
2
votes
1answer
57 views

How to merge record data and a pdf attachment and generate a single pdf in apex?

I have one pdf file as an attachment of record. I want to create a single pdf file that contains some data from the record as the first page and the attached pdf file as the next page. How I can ...
0
votes
2answers
25 views

Unknown property 'SetValue.Id'

While i'm displaying set data into vf page it's showing the error vf code :-- <apex:page controller="Soql_Ct"> <apex:form > <apex:pageBlock title="Soql_Example" > ...
-3
votes
0answers
10 views

Create custom setting “ValidationSetting“. This custom setting should be used to activate/deactivate any Validation Rule from your org [closed]

Create custom setting “ValidationSetting“. This custom setting should be used to activate/deactivate any Validation Rule from your org.
0
votes
0answers
14 views

Table created using ClassWrapper - problem with saving changed values to database

I am having problems with saving to database values from table that I created using ClassWrapper. VF: <apex:form > <apex:pageBlock id="mainTable"> <apex:pageBlockTable ...
1
vote
0answers
24 views

How to set Language for entire LWC component like visualforce page

In visualforce page we can set the language using language attribute like this. <apex:page id="myr_Page" language="{!userDTO.userlanguage}" > I know that we can use the below way to set the ...
-2
votes
0answers
38 views

Visualforce Rerendering of price based on pricelevel picklist option selection not working [closed]

I am passing map of price level name to price "Map". "selectedoption" to set the default picklist value. In VF on picklist change I am just rerendering the price field. But price is not apearing on VF....
0
votes
1answer
40 views

VisualForce Page - Apex:Repeat & Map not showing any values

I have problem showing my map value to the visualforce page, in my controller I populate the maps and create below method public Map<String, Decimal> getmapTargetCurrentMonth(){ return ...
0
votes
1answer
31 views

Visualforce Page field count + warning message

VF page : <apex:pageBlockSection title="About the Listing" columns="1"> <apex:outputPanel id="outerOutputPanel4before" layout="block"> <apex:PageBlockSectionItem > ...
0
votes
0answers
30 views

How to use “NameSpace” on Visualforce Page in salesforce?

I have facing problems on the VF page when I've to use StanderdController on VF than how I get "namespace" before the default field in a package org. Here "Charge_Item__c" is a custom object in ...
0
votes
1answer
23 views

VisualForce page styling

How can I dynamically change the styling on the VisualForce Page depending on the Lightning/ Classic.As we are in the process of migrating from Classic to Lightning we want the VF page to be ...
0
votes
0answers
15 views

Visual Clone Record via commandLink button

I am attempting to modify some existing Visualforce & Apex Code previously implemented by our Salesforce consultant. On my VF page, there is a commandLink button called "Create Renewal" which ...
0
votes
0answers
15 views

I want to view vf page in lightning style

I have created a vf page and used the lightning style sheet (lightningstylesheet="true"), I have also made the vf page public , but I am facing an issue as I am not able to view my page in lightning ...
-1
votes
1answer
29 views

How to display Salesforce Einstein Analytics dashboard on external website

I have created this dashboard in Einstein Analytics Studio. Is there any way to display this dashboard on my external website.
0
votes
1answer
36 views

Google Map static map not working in Visualforce pdf

I have a page which is being rendered as pdf and in it there is a google static maps image which is not being displayed. This used to work fine but for some reason seems to have stopped working. The ...
3
votes
0answers
80 views

<apex:outputField> on URL-field renders Popup - blocked in Chrome

In a Visualforce page (embedded into Page Layout sections) I reference a custom object with an URL field using: <apex:outputField value="{!record.SupportLink__c}"/> When clicking the link ...
0
votes
0answers
14 views

Salesforce Chat - Direct-to-Agent

any one knows why when using direct-to-agent using deployment api it doesn't launched the custom chat page? it always launch the standard chat window with plain design. I'm launching it using the ...
0
votes
1answer
21 views

Outputtext rendered conditional check not working with < or >

This is my VF outputtext which works fine: <apex:repeat value="{!port.hList}" var="per"> <tr> <td> <apex:outputText value="{0, Number, #,###,###.00}" rendered="{!...
0
votes
0answers
25 views

Related List on Approval Screen

I have the scenario like .. I have my quote and whenever I am adding any product to cart and the discount is greater than 20 % it should go for approval. Now on my approval screen I want the details ...
0
votes
1answer
31 views

Set Dynamic value for an readOnly field- Case Number

On my page am doing a search (Case Number) and storing the Data in the user record, So whenever the user login back trying to display the records based on old search. In that case, Trying to build a ...
0
votes
1answer
27 views

Unable to click a button in a pageBlockTable with JQuery

I have a Visualforce SPA that is working well but I cannot display an alert or perform any other operation with JQuery when clicking a button inside a pageBlockTable. I found that using the span tag ...
2
votes
0answers
21 views

Does Salesforce have alternative to “lightning out” for publishing lwc components on public force.com site? [closed]

When we use visualforce + $Lightning.use script it takes about 9 seconds to display components. Which is huge delay. Is that the only way that we can use lwc on public force.com site/community?
0
votes
0answers
18 views

PageReference - redirects in the Community Portal

Is it possible to use relative urls to access custom object pages and visual force pages with PageReference in the Community Portal? I am looking for something like this: PageReference congratsPage =...
0
votes
1answer
22 views

Analytic Report Chart not working in iframe

What I am trying to do is to land on the actual report after clicking on chart which is rendered on VF page using Iframe. First I have used <analytics:reportChart> tag on the VF page to see the ...
0
votes
2answers
54 views

Import data from Excel via Apex and Update Object

I'm using the following code to import small csv files (not more than 200 rows per upload) from visualforce into Salesforce. Page: <apex:page controller="importDataFromCSVController"> <apex:...
0
votes
0answers
28 views

Help adding a footer to a visualforce page

I have the below visualforce page. I need to move the last section of text to the footer of the PDF document. Although there are similar threads, I have not been able to get mine to work. <apex:...
0
votes
0answers
22 views

SteelBrick Advanced Approvals “Argument cannot be null” on Preview

Has anyone seen this issue:  We've created an incredibly simple approval with the Salesforce Advanced Approvals package: 1 Approver (Test Approver 2) 1 Approval Chain (Test Chain - Referencing the ...
1
vote
0answers
20 views

VF Page unable to show Custom Setting Value when accessed from Live Chat

I have fetched certain data from Custom settings and used them in a VF Page.When the vf page is previewed it shows the values in the picklist of vf but when the vf is opened from Live Chat.It shows ...
8
votes
1answer
91 views

6 minute delay in a Visualforce response in Spring ‘20 Sandbox Preview orgs

We have one managed package Visualforce UI <apex:commandButton .../> timing out only in Spring ‘20 Sandbox Preview orgs. The tail end of the log looks like this: 11:42:28.5 (1587639757)|...
0
votes
0answers
22 views

Structure of visualforce page using standard controller, extension and wrapper of data?

I am creating a component to add to a contact record that shows aggregated note data from two different sources. Page <apex:page id="AggergatedNotes" standardController="Contact" ...