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

Passing input variables to Salesforce Scheduler Inbound Guest User flow hosted in a website

I've implemented and modified Salesforce Inbound Guest User Flow to accomplish the business requirements following this guide: https://goravseth.com/using-flows-as-a-form-tool-for-external-users ...
user avatar
0 votes
0 answers
20 views

Visualforce Page - Word document generation - Table of Contents

We can use Visualforce page to generate word documents. Is there a way to also generate table of contents? I mean, by clicking to proper element of the contents to be redirected to the respective ...
user avatar
-1 votes
0 answers
14 views

Can we update <apex:outputField value="" in VF page with data from email template which user receives through Visualforce trigger

Once user receives an email and click on link, Visualforce page will be display. Can we update the page content with content used in email. Each user will get unique details on page content.
user avatar
-1 votes
0 answers
4 views

Can we update <apex:outputField value="" in VF page with data from email template which user receives through Visualforce trigger [duplicate]

Once user receives an email and click on link, Visualforce page will be display. Can we update the page content with content used in email. Each user will get unique details on page content.
user avatar
1 vote
0 answers
23 views

How to make a single column editable in Visual Force?

I am using visual force to show the parent and child at a single table. Now I want to make a child column editable. When I click on Class Notes Only the first row is editable but another row is not ...
user avatar
0 votes
1 answer
29 views

Aggregate result not working in soql query

im new to visualforce and i have this problem: I have a sObject with customField1__c, customField2__c, customField3__c. In my main page (with a standard controller and an extension) i want to display ...
user avatar
0 votes
0 answers
29 views

How to change the file name position in inputField

I am trying to customize the look of an apex:inputFile : reference. I need to show the name of the chosen file under the button instead of beside it. I am doing it because the inputfile is in a tight ...
user avatar
  • 23
0 votes
1 answer
28 views

Can't create a dynamic footer for printed visualforce page with landscape and portrait pages

I am creating a downloaded document from a visualforce page using pdfPage.getContentAsPDF() and passing in some parameters. I am using @page properties to print the document as a page. The first page ...
user avatar
0 votes
1 answer
20 views

Conditional apex output field

I have a data table in a visualforce page where I would like to display "nothing here" if my sObject field is empty, but if there is something written inside i would like to display it. i ...
user avatar
0 votes
1 answer
16 views

how to call an apex method automatically when a vf page loads ie, how to achieve <aura:handler> or connectedCallback() in vf?

Vf code: <apex:page controller='autocall'> <div align='center'> {!msg} </div> </apex:page> Apex code: public class autocall { public string msg {get;set;} ...
user avatar
0 votes
0 answers
26 views

Formatting is not retained in Salesforce Rich Text Area fields

We have a requirement to store large text in Rich Text Area Fields of custom object containing bullet indentation and tables. Unfortunately, RTA fields do not support sub-bulletining or table ...
user avatar
-2 votes
0 answers
24 views

List View Button To Create New Record Not Working in Community [duplicate]

I created List View Buttom using VF, it's working in Lightning View but For Community, it's not working. what solution i should use?
user avatar
0 votes
0 answers
18 views

Experience Cloud page property SEO is not worked

I am setting page seo property of every page in experience cloud builder, but it is not worked when I use the SEO spider tool to test the url. Can someone help me understand what should be modified ...
user avatar
0 votes
1 answer
44 views

DML currently not allowed - trying to log exception in a custom object inside the constructor

I have a controller extension that makes a get request inside the constructor to get some information from an api. public extension(ApexPages.StandardController stdController) { Account ...
user avatar
0 votes
1 answer
25 views

InputField inside of a repeat not updating or saving changes

I have been monitoring strange behaviours in my page since I put the pageBlockTables in repeat and te columns of these tables inside a repeat too. hte recors I try to create appears on my page and I ...
user avatar
  • 23
0 votes
0 answers
12 views

Display VF Page within iFrame in an Experience site for public use

I hope you are well! I have a flow, it runs some logic, before running a Lightning Web Component. This component is there only to hold a Visualforce page inside an iframe. In this VF page, I have all ...
user avatar
  • 1
0 votes
1 answer
47 views

How to display only primary contact of Opportunity

I just start to learn Salesforce and now I try to create VisualForce page that display info about primary contact. I tried to use {!Opportunity.OpportunityContactRoles.Contact.Name}, but that way I ...
user avatar
  • 23
0 votes
1 answer
24 views

Facing issue in Opening a Primary Tab from a List View Custom Button (Console View)

The only option in Salesforce to place a Custom Button on a list view is to create a Visualforce page and then call your required function from there. But the issue I am facing is, I want to open a ...
user avatar
0 votes
0 answers
39 views

How to fire custom event in visual force page and handle it in Aura component?

I have a vfpage loaded in LWC using iframe and this LWC is called in a parent Aura component. I have a requirement where I have to fire an custom event in VFpage to send details and handle it in Aura ...
user avatar
  • 1
0 votes
0 answers
23 views

apply style on my VisualForce page

I want to apply a color gradient on the background-color on a component of my VisualForce page. I used some code I found at : PageBlockSection background style using static resource file to test a ...
user avatar
  • 23
0 votes
1 answer
29 views

How to iterate a sObject in a visualforce page

im new to salesforce I have a sObject (A__c) with a lookup relationship with B__c and C__c. I would like to have a table for each A that displays his related B and C example: A B C How can i ...
user avatar
2 votes
0 answers
33 views

Blank PDF using getContentAsPDF in future method

I am having an issue in production with a specific Profile (a clone of the System Administrator) that generates Invoices via a @future call resulting in a blank PDF creation. Below is a simplified ...
user avatar
  • 21
0 votes
0 answers
19 views

InputField can't be used with a commandButton that use rerender

apex:inputFile can not be used in conjunction with an action component, apex:commandButton or apex:commandLink that specifies a rerender or oncomplete attribute. This is the message I get when I press ...
user avatar
  • 23
0 votes
0 answers
24 views

Guest use receive error No profiling information for SOQL operations

Guest user receives an error after pressing redirect button in VFP 14:55:47.2 (40002254)|CODE_UNIT_FINISHED|VF: /apex/dossierattachmentsform 14:55:47.2 (40024393)|EXECUTION_FINISHED 14:55:47.43 (...
user avatar
  • 15
0 votes
1 answer
38 views

How to show dynamically all fieldSets and their fields in a page bloc table

I want my visualforce page to show each of my fieldSets in a pageTable, and the columns of the tables to be the fields present in their fieldSet. I want to be able to do that because I dont want to ...
user avatar
  • 23
0 votes
1 answer
20 views

How to pass a list of custom object records from Apex to Visualforce

EDIT: Updated Apex controller I want to pass custom object records to a vf page to be rendered as a table. See below code. The controller method is called from a LWC. Apex Controller: public List<...
user avatar
  • 398
1 vote
0 answers
30 views

How to render JSON array from LWC as a table in Visualforce

I have a LWC with a datatable. I need to generate a PDF of this datatable. How can I pass the JSON string which populates the datatable to a VF page and render the table there? See what I have so far ...
user avatar
  • 398
0 votes
0 answers
8 views

What is the best way to refresh or handle the onsuccess event using sforce.one in the visualforce page

I'm new to salesforce, I have created a VF page for creating and editing a record using sforce.one function, but is there a way to handle refresh or reload the current page(Visualforce Page) when the ...
user avatar
0 votes
1 answer
23 views

Adding a collapsible row in a pageBlockTable

I have a pageBlockTable nested inside a pageBlockSection and I'm trying to nest a collapsible row inside the pageBlockTable that would pull in some related records based on the ID for each row in the ...
user avatar
  • 2,327
2 votes
3 answers
25 views

Unable to return list filtered by current user

Pretty new to this and I am creating a Visualforce page that returns a list of contacts that belong to the logged in user. I have the following controller but when I preview the page I get the error ...
user avatar
-1 votes
0 answers
27 views

select all record from a related list without having to select them

I am using a standardSetController in constructor of my extention, wich let me use the functions getRecords() and GetSelected() The problem is that getRecords() gives me a list of ALL the records of ...
user avatar
  • 23
1 vote
1 answer
34 views

How to modify <head> contents of LWC

I am trying to build a reusable Google reCAPTCHA LWC component for our org. I have successfully implemented this in Experience Cloud for another org we have, however that org is using the standard ...
user avatar
2 votes
0 answers
34 views

Translation via custom labels for dynamically generated content

The context. To dynamically translate custom labels in Apex for a given language that differ from the language of the current user, I use the Visualforce page approach. The problem. I can't use this ...
user avatar
1 vote
0 answers
24 views

selectRadio, inputTextArea not rendering in Visualforce Page as PDF

thanks for reading! I'm trying to render some fields as PDF in my Visualforce Page and I can't understand why the data is being rendered fine but not the fields itself. <div class="content&...
user avatar
0 votes
0 answers
23 views

Trying to render Google reCAPTCHA on Visualforce page, getting an error with script src

I'm trying to render a Google reCAPTCHA on a Visualforce page. When I link to the script src, I get the below error: The reference to entity "onload" must end with the ';' delimiter. The ...
user avatar
2 votes
1 answer
18 views

Calling an extension method from a child component

I have a Visualforce component issue that I cannot resolve. VF page: <apex:page standardController="Opportunity" extensions="MyExtension"> <c:childComponent /> </...
user avatar
  • 81
-1 votes
0 answers
17 views

Merge fields in Visualforce template not pulling through for standard user?

we have a Visualforce email template that pulls through all the merge fields correctly for an admin user but not for a standard user. Have given the standard user profile access to the relevant ...
user avatar
  • 1
1 vote
0 answers
18 views

How to open and close a visualForce page with ba related list?

So I am trying to create a VF page where it will be easy to manage multiples records of a related list at a time. My problems are: I don't know how to launch the page from a new button on the related ...
user avatar
  • 23
0 votes
0 answers
22 views

Visualforce Email Template Vertical Spacing issue

I have the following line of code for EmailTemplate. When sending the email I am attaching the articles in the emailTemplate. The issue is between the email text and the Article there is a huge white ...
user avatar
  • 659
-1 votes
0 answers
29 views

Deploying a Visualforce Page from Visual Studio

I just deployed a Visualforce page from Visual Studio. Everything worked and it said it was deployed successfully. But now I don't see the page when I go to the Visualforce Pages section of Setup and ...
user avatar
  • 61
0 votes
2 answers
43 views

Strange String behavior in Apex

I have old code where VF page is doing URL redirection with appending query params in URL. like URL="https://UatTest.com?target=FGI" - this is from label then we are appending params with ...
user avatar
  • 1,277
2 votes
0 answers
19 views

Dynamic Record Ids in Embedded Visualforce page within Lightning Record Page

We are working on an AppExchange app, where we need to embed the below widget code into Salesforce lightning record page. <!--- EmbedWidget Visualforce Page --> <apex:page controller="...
user avatar
  • 2,232
2 votes
1 answer
48 views

Render as PDF page orientation

I'm trying to have both portrait (page one) and landscape (page two) in a visualforce page which is 'render as PDF'. I have tried various options but cannot get it to work, I can only get all ...
user avatar
0 votes
0 answers
21 views

After Displaying Alert on Field Change reset the checkbox

Use Case: When the user changes values on some fields on Opportunity record, Alert/Warn the User. My issue: I am not able to reset the checkbox so that the Alert Pop up does not show everytime the ...
user avatar
0 votes
0 answers
31 views

System.UserManagement.initSelfRegistration​ does not exist [closed]

I'm trying to use the method initSelfRegistration for self-registration on my custom page, but I'm getting that error: "Method does not exist or incorrect signature: void initSelfRegistration​(...
user avatar
  • 1
0 votes
1 answer
26 views

(Community Exp) Multiple Inputs for a VF Component

THE CONTEXT In the community builder I intent to create a page where inside it is a visual force page. The visual force page needs to accept two inputs. THE PROBLEM It seems like in the community ...
user avatar
0 votes
1 answer
17 views

reference a VisualForce component attribute to use in itself

I would like to know how to get an attribute of a component in a visualForce code. In this code, wrappers is a map and I would like to put the value of the pageBlocktable to a List which is contained ...
user avatar
  • 23
0 votes
0 answers
17 views

Content is getting truncated when rendered as PDF

I have a query like i am generating a pdf file in which all the content notes will be displayed.I found an issue like content of contentnotes is getting truncated when pdf file is generated.Please let ...
user avatar
  • 1
0 votes
1 answer
35 views

Show popup with confirmation button using addMessage and commandlink

I have a requirement where I have to create a popup (using addMessage) that display two options: confirm and cancel, each of these options has an action. I already tried passing a command link in the ...
user avatar
0 votes
1 answer
37 views

Apex: From Word Document get content and save as PDF

According to Salesforce limits, generating PDF using special characters is impossible to show bold characters. I still have the issue described here, where from a rich text i want to show the field's ...
user avatar

1
2 3 4 5
329