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
0
votes
0answers
7 views

Experience Cloud Visualforce page is having library and resource loading issues after cloning a Sandbox from Production

The Visualforce page is working fine in prod, but I spun up a Sandbox to do some dev work on it and the CSS wasn't loading, nor was jQuery. jQuery seems to be the first area where things start to ...
0
votes
1answer
15 views

Why is my Field/Object visible on a Visualforce page in Salesforce but not when the page is a public site?

I have a Visualforce page that displays a parent object and a list of related child objects. The page works when run inside Salesforce; the parent object info and list of child objects are visible. ...
-2
votes
1answer
18 views

Stop displaying “Maximum view state size limit (170KB) exceeded”

i have a VF page in which users can upload files. The issue i'm encountering is if the file is a certain size (Which is a relatively small size), the user is shown a screen that says " Maximum ...
-1
votes
0answers
19 views

Automated email pdf attachment created using visualforce

I want to send automated email every month to Primary_Contact_Email__c and attach visualforce renderas pdf file in it, which is taking dynamic values from my controller extension apex class. Right now ...
0
votes
0answers
13 views

I want to achieve yes and no dialog in Revise quote Button .How Can I Achieve that [closed]

If I click Yes its should Revise Otherwise It should redirect again to back on No Option.
0
votes
1answer
22 views

Visual Force page converted to Lightning still appears with Classic feel

Has anyone experienced this? I've already converted some Visual Force Pages to Lightning Experience thru enabling them in settings and adding lightningStylesheets="true", it already appears ...
0
votes
0answers
12 views

Configure Rich Text Editor look-and-feel on VF page

I want to know if there's another way to allow user to input text that can be formatted using bold, underlined, italicize and bullets, without using Rich Text Area field, or maybe still use Rich Text ...
0
votes
0answers
17 views

Visualforce sent an Invalid Response

When I click on the Create Order PDF custom button on the Order Layout, which is used to create a PDF document of the Order with Order details, it is redirecting me to a visualforce page where I am ...
0
votes
2answers
40 views

I want to insert multiple Account Records with visualforce but i am getting error(Formula Expression is required on the action attributes.)

//My visualforce page code <apex:page controller="AddMulAccountContr" > <apex:form > <apex:pageblock > <apex:pageblockTable value="{! listaccount}&...
0
votes
1answer
17 views

Disable VFP Command Button on Click

I currently have an issue where users are button mashing a custom VFP Lead convert page and converting a lead into multiple Accounts. Based on the direction of this POST I was able to partially ...
1
vote
0answers
15 views

On clicking on Vf page button getting logged out in safari browser

I have created a vf button for list view/Detail page. When I click on it I am redirected to login page. I tried some things but was not able to find reason for it. Then I tried session setting. I ...
0
votes
0answers
19 views

How to sort columns in VF page, displaying fields from wrapper class

I have a VF page displaying a pageblocktable, and I need to be able to sort the columns (most importantly the "name" column. Can anybody assist. Here are the relevant snippets of code from ...
0
votes
0answers
20 views

Add createddate and file size to wrapper class of contentdocumentlink

I am working on a visualforce page that displays names of contentdocumentlinks, and as the page is currently, it shows 2 columns: numbers and names of the contentdocuments. I want to add a couple more ...
0
votes
1answer
29 views

Insert Contact into Case - Lookup(Contact) with APEX [closed]

I have created a simple form that creates a new record in a Case when submitted. I can populate the text/String fields ok but the "Contact" field is giving me trouble because it is a Lookup(...
0
votes
0answers
16 views

How do I get the IDs of the selected records so I can send each an email?

I have a custom Object Followup and a related list of Cases on the layout. How do I get the IDs of the selected records so I can send each an email? The Visual Force Page : <apex:page ...
0
votes
1answer
26 views

Apex Code for Campaign Member List

I've been struggling with creating code (I am not a developer) for a VP where all Campaign Members with certain fields completed (CampaignMember.Article_Link__c) are displayed in a table. The goal is ...
0
votes
1answer
15 views

conversion of JS button to Lightning salesforce

I have a JS button, which is calling a web service class method and doing some process. I am trying to convert that to call a VF page and make it lightning compatible. But I am stuck on an error while ...
0
votes
1answer
22 views

LWC hyperlink to custom page with record id [closed]

I have a created a custom visualforce page for account record. I have an LWC that displays list of account. I want to direct the user to the custom VF page when the user clicks on the account. This is ...
1
vote
1answer
31 views

Able to perform Action even after Onclick button is disabled

I am using styleClass to disable the button. In UI it is showing as disabled. But when I click on the button, I am able to perform an action. Please suggest me a solution. <apex:commandButton ...
0
votes
1answer
25 views

How can I clean my apex: selectList every time I click on search for product? (search opens another visualforce page to search for products)

I am in a situation where I cannot find a solution ... I have a visualforce page where one of the fields is "Search" that opens a visualforce page with products that go through a filter. ...
0
votes
1answer
11 views

How to display related List of Custom Object on Lightning VF page

I am unable to show the related objects of a custom Object. Working with Case management System. I added a custom object Followup (Followup__c) Added to cases a lookup field to Followup. Added a ...
0
votes
0answers
10 views

Remove Hide Cancel Button on visualforce page

I have a VF page that calls a controller to create a new record. The user just need to click the custom "new' button. The issue is that after the button is clicked a pop up flashes. I can see ...
1
vote
1answer
44 views

Uploading files to the wrong related list

I am trying to upload files to one record while displaying the CombinedAttachments related lists for multiple records. No matter which related list I use to upload files, they always get attached to ...
-3
votes
1answer
24 views

NOT able to Save either VFP or APEX class [closed]

MY VFP::: <apex:page controller="EmailControllerClass"> <p> compose Email::: </p> <apex:form> <apex:outputLabel value="...
2
votes
2answers
53 views

History field is blank for this query, Please help :)

I am new to salesforce, please help me out with this one: I am trying the following SOQL query to retrieve the changes made to the teacher object but I am getting nothing in the history tab. I turned ...
0
votes
1answer
26 views

Align position of <apex:pageMessages> tag

I would like to center the error message displayed via <apex:PageMessages> however it is not responding to div/css tags such as div align="center" or text-align: center; - does anyone ...
-2
votes
1answer
47 views

How To Ignore span Tag in the middle of Curly braces? [closed]

Ignore the span tag between the curly braces. {{</span><span style="font-weight:bold; text-decoration:underline">Opportunity</span><span style="font-weight:bold&...
0
votes
0answers
37 views

Too Many redirects when redirecting to a Visualforce Page

I am working in a community portal and I am facing an issue while two tabs are opened simultaneously. According to my scenario, when the session time exceeds automatically the warning timer is ...
0
votes
1answer
19 views

How to set controller date in test class

how to set a date in the test class, Thanks in advance. visual force page: <apex:page controller=IntegrationController" docType="html-5.0"> <apex:outputPanel > ...
0
votes
1answer
12 views

How can I update output values when a lookup field is changed in a Visualforce page?

I'm trying to get the shipping street value that's being shown to dynamically change if the lookup Account field is changed. Here is the visualforce code that I have so far: <apex:page ...
7
votes
3answers
374 views

How to subscribe to events from LWC embedded in Visualforce

I have an LWC which subscribes and display a custom Platform Event import { LightningElement } from 'lwc'; import { subscribe, unsubscribe, onError } from 'lightning/empApi'; export default class ...
0
votes
0answers
13 views

How to pass value from one VF page to another and refresh page where value is sent(Both vf pages will be used as Components on Lightning record page)

I have to create 2 VF page (casecreate and KnowledgeArticles) Both components will be placed on Lighting Record page and these pages will be used as Components Case create page is created from where ...
0
votes
0answers
14 views

Creating folders in Sharepoint from Salesforce [closed]

Is there any way to create folders by action, like a button on the opportunity page, or a visual force page where I click and it creates a folder on Sharepoint in a specific location I choose, and if ...
0
votes
1answer
21 views

Is it possible to set up JavaScript to capture when a button is clicked that's from an external site iframe?

Have an iframe on a Visualforce page that's src is from an external site. The iframe has a button that's used to send a recording off via email from that external site. I'm trying to see if it's ...
0
votes
0answers
10 views

Visualforce redirecting to new page within iframe

This visualforce page is referenced in Sites inside my Salesforce Org. The site domain is iframed inside the company website. When the Submit button is clicked, the page that is navigated opens within ...
0
votes
2answers
16 views

Visualforce List Action keep reloading

Hi I created a custom List view button with Visualforce. The intension of the custom button is to support bulk approve. Expected behaviour is, when an user press the button, it should load visualforce ...
0
votes
1answer
43 views

System.NullPointerException: Attempt to de-reference a null object Class.NPI_Class.getNPIcallout [closed]

I am getting error on the following lines <apex:pageBlockTable value="{!npiCallout.Results}" var="rslt" width="100%"> Apex:- ** public NPI_Wrapper_Class ...
0
votes
0answers
34 views

Auto Logout function is not 100% working for Visualforce Page

I have written an auto logout function for a community portal. This is inside a visualforce component and this has been exposed to a visualforce page. The problem here is this auto logout function ...
0
votes
0answers
32 views

How to set up a custom Quota's object? (multiple quotas)

I'm looking for some folks to help me brainstorm how to set up a custom object(s) to allow managers to input quotas for sales people. I can't use the OOTB forecast/quota functionality because it only ...
0
votes
0answers
15 views

How can I execute a controller method every time I change the value of an inputtext in a visualforce page?

How can I execute a controller method every time I change the value of an inputtext in a visualforce page? That is, every time this field changes its value, a controller method is executed I ...
1
vote
1answer
16 views

Open Classic Console Tab from LWC in Classic VFP

Working a classic org that is trying to iteratively add LWCs for future migration. Successfully created and deployed the LWC into a VFP, functions as expected. We would like to add open a classic ...
0
votes
1answer
26 views

Validation Rule checking if Quote is synced when Opp is set to Closed won

I made a validation rule which verifies that a Quote was synced before the Opportunity can be set to closed won. AND( ISPICKVAL( StageName , "08 - Closed Won"), ISBLANK( SyncedQuote.Id ) ) ...
0
votes
1answer
28 views

How to pass input of date picker to controller

Since I have been looking for a date picker which I can format on a visualforce page for a foce.com site I found that salesforce is very limited. I found the following example which I can format and ...
0
votes
0answers
19 views

How to get URL Parameters into Visualforce Page Embedded in Community Page on Mobile

I have a Visualforce Page (renderAs="pdf") dropped onto a Community Page. How do I get the parameters into my Apex Controller from the URL on a mobile device? I do this perfectly on desktop ...
0
votes
0answers
12 views

Writing Apex Extension Test [duplicate]

I was graciously given the code below by sfdcfox, however after spending the night googling for test class walkthroughs I can't seem to figure it out. Would anyone have any resources to share or be ...
0
votes
0answers
10 views

How can I pass the selected value from a picklist to the controller to filter records?

I need your help... I have a Visualforce page that displays a select list with the name of records from a custom object, these as an option each. Visualforce: <apex:pageBlockSectionItem &...
0
votes
1answer
20 views

Saving Related List Field in VisualForce Page

I've fumbled my way through the visualforce page below and I'm wondering how I can get the user input to save. <apex:page lightningStylesheets="true" standardController="...
0
votes
0answers
17 views

Reference Fields in Custom Metadata records in Visualforce page

I'm making a visualforce page that basically has 4 big buttons that each link to a different dashboard. Each button has a name, some description, and a link. I thought I would try to store this info ...
0
votes
1answer
22 views

How to pass key from an apex class to Visualforce controller class?

I have created a process builder which invokes apex class when a checkbox is true and it adds the encrypted Id and encrypted key to the fields in opportunity records. The issue is that when I am ...
1
vote
0answers
23 views

LWC to visual force Page

We had the New Button for Opportunity Visual force Override page so that opportunities could be created only from Contact (New button on Opp Related List where contact field is mandatory). It shows ...

1
2 3 4 5
324