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
9 views

header and footer repeating at the end page in the doc while rendering Visualforce as Ms Word document

I have searched solution for this and got the solution only to move that repeated header and footer out of the page to hide that. But I don't want to do that, can anyone help me with this. Thanks in ...
0
votes
1answer
19 views

passing JSONGenerator apex value to javascript giving error

I am trying to pass JSONGenerator value to javascript , but in vf page its appearing as new line due to which its erroring out "Uncaught SyntaxError: Invalid or unexpected token" . Why in ...
0
votes
1answer
20 views

use instanceof keyword in a visualforce page

Im trying to use the instanceof keyword in a visualforce template. I would like to pull the MobilePhone field from the Related Owner record. This works when accessed in apex but is not working in the ...
0
votes
0answers
19 views

Unable to pass selected apex:selectRadio value to Apex controller

i have below piece of code : <apex:selectRadio value="{!ProWrap.strActionValue}" disabled="{!ProWrap.disableaction}" > <apex:actionSupport ...
0
votes
1answer
31 views

how to convert &#39 ; to single quote in apex

Abc&#39;s Place this coming in apex. actual picklist value is => Abc's Place, Abc&#39;s Place is coming from json from Vf page to Javascript Remoting. It's throwing an error when I am ...
0
votes
2answers
16 views

Visual force page not rendering the ouptput

I have a VF page which should display the opportunity data but when I search for the data using the input field i am not able to see any output and it's not displaying any output even it has the ...
0
votes
0answers
17 views

Formatting Visualforce Pages in VSCode on Save

can someone confirm how to get prettier working with visualforce pages on save in VSCode? I have tried in a fresh project but it never works. Steps taken: SFDX: Create Project npm install SFD: Create ...
0
votes
0answers
25 views

Insert failed. First exception on row 0; first error: CANNOT_EXECUTE_FLOW_TRIGGER from an external app [closed]

I am getting the following error when a record is being created from an external app Insert failed. First exception on row 0; first error: CANNOT_EXECUTE_FLOW_TRIGGER, This record cannot be saved due ...
0
votes
1answer
24 views

I need to design below is any idea its highly appreciate? [closed]

Need to design attached page need idea for this it is possible using LWC and another method we have in salesforce?
0
votes
1answer
17 views

Field value won't display in html table in Visualforce page

How do I show the value of a field in the blank cell (leftmost cell in 2nd row)? If I put a text within the <th></th> tag, it shows (like the top left cell). But if I put a value of a ...
0
votes
0answers
23 views

How to iterate Map<string,List<Wrapper>> in vf page

I have a map I am displaying in a Visualforce Page as below: <apex:page controller="MyController"> <apex:repeat value="{!requiredHeaderList}" var="requiredItem&...
0
votes
1answer
15 views

CSFR Errors When Accessing VisualForce Page From Lightning Web Component Even With NavigationMixin

I've seen many questions on accessing Visualforce pages from LWC, including the following Is it possible to navigate to a Visualforce page from an LWC with parameters and community compatible however ...
0
votes
0answers
17 views

select list in visualforce component disappears after rerender

I have an action function that calls an apex method. I have re rendered one of my output panel in this action function. On rerender the select component disappears from my output panel. Below is my ...
1
vote
1answer
34 views

Display Custom text in VF Page when field value is null

I have a Gantt Chart which is used to show the Project Timeline. I am using Google Charts to display the Gantt Chart. Below is the VF page: <apex:page standardController="Project__c"> ...
-1
votes
0answers
6 views

have b2b commerce with 2 differents storefronts and I need to show a field from CC Order only if the Storefront is “ACust”.How can I write that cond.?

I want to put this field in a vfc where other things are also shown on the screen, but I don't know how to put the condition in a component I found something like <apex:column value="{! If(.......
0
votes
1answer
19 views

'sforce is not defined' on Visualforce page when trying to publish with LMS

I'm trying to use the lightning message service on a visualforce page. To simplify things, I'm using the exact code supplied by Salesforce with the one exception I've updated the SAMPLEMC variable to ...
1
vote
0answers
16 views

Add Header to apex:pageBlockTable

Is it possible to nest in a apex:pageBlockTable sub tables? Or to add a header to sections within the table? I feel like i should be able to just use a header tag <h1> type of thing but it is ...
0
votes
1answer
24 views

Cannot get value back in VF page from the controller [closed]

I'm using the code below but I'm not able to get value in controller and also makes blank what I entered in VF page. please check if this code needs correction: VF Page: <apex:InputText label="...
0
votes
0answers
31 views

System.DmlException: Insert failed. First exception on row 0; first error: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, [LinkedEntityId]

I have hosted a VF page on site. As a site user we use the form to fill the lead details. In this form we also have a option to upload a file. I'm able to create the lead record, & the file gets ...
0
votes
1answer
60 views

Update a record field in a controller extension [duplicate]

• I currently have a custom object - Assessments__c • A PDF is successfully created and attached to this object based on a custom button action on the page, using Apex and VisualForce • I need to know ...
0
votes
2answers
44 views

Experience Builder: create different pages with same page layout?

building a community with different pages that all use the same page layout (aura component). however, with multiple pages using the same layout, when I edit one page, all of them are changed. is ...
0
votes
1answer
22 views

How to display custom Apex class Object in VisualForce?

I have the following class : - public class Comment { Integer postId{get;set;} Integer id {get;set;} String name{get;set;} String email{get;set;} String body{get;set;} public ...
0
votes
1answer
20 views

Not able to link products to related opportunities using nested map

I have a requirement to display Opportunities and related products based on product fammily. Ex: Opportunity 1 Product Family 1 Product 1 Product 2 Product Family 2 Product 3 ...
1
vote
1answer
71 views

Failed to execute 'postMessage' on 'DOMWindow': The target origin provided… How to fix this issue?

Hope you are doing fine. Currently, I'm facing an issue. Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://companyName--c.visualforce.com') does not match the ...
0
votes
1answer
23 views

“This operation is not allowed for internal user profiles” - Custom Digital Experience Login Handler

I am using a Custom Digital Experiences (Communities) Login Page with a custom controller to handle verification and login. The expectation is, a Sales Agent will create an inactive Community User ...
0
votes
0answers
26 views

Set two buttons next to user input in Visualforce Page

I am building a visualforce page which is a form to create a record in a custom object. The form is like this: I need to allign next to recipient field two buttons, a search and a clear. I tried ...
-1
votes
0answers
34 views

Custom controller access object field

I have made a Visualforce page that uses a custom controller. The custom controller queries an API. I want to pass the Customer ID that corresponds to the account being viewed to that API. I tried ...
1
vote
0answers
37 views

<apex:input> data type error

I just tried to introduce a new date field on an old Visualforce page like this: <apex:input value="{!fromDate}" type="date" label="From:"/> In the controller the ...
-2
votes
1answer
28 views

How to display new object field in trigger error page? [duplicate]

I need to show the value of the fields of the objects being created on the error page. i tried to do it via add error but it doesn't output dynamic data trigger checktime on Appointment__c (before ...
0
votes
1answer
22 views

Add classic / Lightning name to template folders during selection of email template

When a user searches for an email template while setting up the E-Mail send option, I want to add a clarification to the user showing if folders and templates are being pulled from classic or ...
0
votes
1answer
29 views

Javascript visualforce upload file issue

I'm attempting to upload a file through a VF command link and action function [working on old unmanaged package :-( ]. For multiple rows in pageblocktable. I am having trouble deciding the id for each ...
-1
votes
1answer
22 views

Invalid field servicing_Date__c for SObject Vehical1__c

<apex:page controller="VehicalServicingController"> <apex:form> <apex:pageBlock> <apex:pageBlockSection title="Vehical Details" columns=&...
1
vote
0answers
31 views

NOT able to SET value passed in <apex:param> to APEX CONTROLLER

VF PAGE <!--Here Custom_Field__c is a PickList ON task Object --> <apex:inputField id="abc" value="{!wrapTemp.task.Custom_Field__c}" > <!--Here ...
0
votes
1answer
14 views

How to set fixed height to apex:repeat tag in visualforce page

I am trying to set fixed height to apex:repeat tag, so that page can show scroll bar, but I am unable to set fixed height to apex:repeat. Please let me know how to set height to apex:repeat tag. below ...
0
votes
0answers
13 views

HTML Card are not working in visualforce Email template

i have two questions Q1). I create visualforce email template using the card for designing. code for card <div style="width :auto;overflow:auto; box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);...
-1
votes
0answers
21 views

VF Page Standard button issue

I created a simple VF Page with standard controller and extension which update the record automatically on clicking the button. No custom buttons were created here, on clicking button we are calling ...
0
votes
0answers
52 views

Failed to load resource: the server responded with a status of 401 (Unauthorized)

I have Visualforce pages contains Lightning App, that contains Aura components hosted to Community aka Experience Builder, which are working fine when user is loggedIn, however, for guest users it is ...
0
votes
2answers
38 views

How to pass record details dynamically to apex class

Objective: To display the URL of VF page as a link on the record detail page and when clicked on that, the VF page should open in a separate tab by taking the record values, such as name dynamically. ...
1
vote
0answers
30 views

Salesforce Images from RichTextArea not being displayed in community portal

I have Salesforce custom field of RichTextArea and users are adding images in it. Now while I am displaying that field value in VF page it is not displaying the images. I found that this is happening ...
1
vote
1answer
54 views

How to iterate over Map<string,List<Object>> in VF Page

I am working on one VF page where I need to show records based on text field like below Text Value1 Record1 Record2 Text Value 2 Record1 Record2 Record3 I created below class where I am storing ...
1
vote
0answers
16 views

Macros not running from VF Page

I have a macro, which replaces the HTML body of the email template. I'm trying to run that Macro from VF Page, but it seems to be not running. When I directly run the macro then it's working fine. ...
0
votes
0answers
26 views

Uncaught Error in $A.getCallback() [Cannot read property 'window' of undefined]

I am running into a very strange error. I have an aura component that loads a visualforce page via iframe. The iframe uses a post message to communicate with the aura component. I have an event ...
0
votes
1answer
27 views

Workflow rule/field update not firing when changes are made in Visualforce page

For some reason, the workflow rule works as expected when changes are made on a standard page; but the workflow rule does not fire when I edit fields on the Visualforce Page, which means the problem ...
0
votes
0answers
19 views

How to use a Record-Triggered Flow to Activate an Email Alert that holds a Visual Force Email

I have a record triggered flow that will activate an email alert containing a visual force email template that has fields being prepopulated ({!relatedTo.field__c}) and conditionally shown text (...
0
votes
0answers
23 views

How to use VF page in Einstein Analytics

I know this might sound complex but is there any way that we can embed Visualforce page in Einstein Analytics. We have built a custom Gantt chart using visualforce page as it is not possible in ...
0
votes
1answer
25 views

How can I determine the actual timezone the user is in?

I can easily pull the user records timezone field but what if the user is traveling and not in that timezone today. Is there a way to determine what timezone they are accessing salesforce from?
0
votes
0answers
20 views

Save & Add product in Lightning

We have overridden "Add Product" button with vf page in our classic experience. In classic, we display the "Save & Add Product" button on the Opportunity standard page. On the ...
0
votes
0answers
16 views

how to get visualforce url to use in navigation mixin LWC [duplicate]

I'm trying to navigate from a LWC to a visualforce. I had found in an answer here that just using the navigationmixin.navigate with type 'standard_webPage' and attribute with url '/apex/vfpagename' ...
0
votes
1answer
10 views

How can I show the approver name and approval date of an approval process in visualforce pdf page?

I am in a problem in which I have not been able to show in a pdf (visualforce page) the name of the approver and date of approval of my registration ... I have an approval process with two approvers, ...
0
votes
1answer
27 views

Need to Open an Aura component as a popup using a button inside a visual force page

I want to open an Aura Component as a popup with a help of a button click in visual force page. Aura component contains set of records which will display in a table. Can any one help me with this. ? ...

1
2 3 4 5
325