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

Cannot scroll from salesforce1 When embedded visualforce page with lightning components

I'd like to add a lightning component to approval page layout. But components only support desktop - so I changed to visualforce page and call lightning components using ltng:outApp extension. However,...
0
votes
0answers
9 views

Error occurred trying to load the template for preview: Attempt to de-reference a null object

VF Contrller:: Public class ComponentHandler { public id DispatchId{get;set;} public list<order> orders; public list<order>varStr; public list<orderItem> ordItms; ...
1
vote
1answer
16 views

VF Form Redirects on Submit but Doesn't Save

I created a VF Page that redirects upon submit, but now does not save/create a new 'intake' object as expected. Why? Here is my VF page code <apex:page standardController="Intake__c" ...
0
votes
1answer
27 views

Show Submit Successful Message After Submit Button Clicked

UPDATE I am working to add a controller and this is what I have: I am getting an error on Intake.Intake__c - I know this is supposed to be PageReference, but how do I call this? My standard ...
0
votes
1answer
13 views

Submit Successful VF Page after Save Button Clicked

Currently, when 'Save' is selected, SF directs to the new record. As our form will be filled out by external guests without a login, we want to be able to direct to another VF page that states 'Your ...
0
votes
2answers
32 views

PageReference in Controller - easy question

UPDATE In the developer's console, I have input the following: public class Intake { public PageReference saveAndRedirect() { Intake__c.save(); // This takes care of the details for you. ...
0
votes
1answer
23 views

Query not returning record for Site users

Getting 'Authorisation Required' error for the site users. This is causing due to the query is not returning the record even if the record is there. Can anyone tell why the record is not getting ...
0
votes
0answers
13 views

Pass value to apex controller using apex action support

Im trying to pass values to apex controller from vf page but values are not passing. could you guys please check where im going wrong. VF PAGE <apex:repeat value="{!am.names}" var="n&...
0
votes
2answers
800 views

How to read XML data in salesforce?

I get data in XML from a web service from a connector URL, the xml contains data about people, now I have to read the names, emailids from that xml and compare with my org's contacts and so some ...
0
votes
1answer
16 views

Open Visualforce page in Communities

I have a series of issues with Communities. I have override VIEW, EDIT buttons with custom VF pages. When I click on record in record list view component in communities, the record is opening in ...
1
vote
1answer
465 views

Automatically show the Choose file option/button when a checkbox is selected

Suppose I have one checkbox and one inputfile (Choose File). The idea is whenever I select/check the checkbox (checkbox value=true) then the ChooseFile (inputfile) will be automatically displayed in ...
0
votes
1answer
435 views

Is there a way to make a PageReference method an InvocableMethod?

This is the scenario: I had a VF page call a controller extension,that would have some criteria and redirect the user to a different page (or not, depending on the criteria). Now, everything starts ...
0
votes
0answers
8 views

Redirects leave Visualforce blank

I'm jacking the New button to show Visualforce. It redirects from A Visualforce to B Visualforce. After redirecting to B, a blank page appears when I show A's Visualforce from the New button. When I ...
2
votes
2answers
3k views

Get value from Javascript function, pass to controller

I'm trying to create an integration with Plaid and they have the following script that runs to get variables from their service. I need to be able to capture these outputs and pass to my controller to ...
0
votes
1answer
1k views

How to pass a dynamic record id to a record detail community page

I have a VF page that displays data from a custom object ('Sublocal'). I want to create a community page that will dynamically display data from the Sublocal that is related to the logged-in user. I ...
2
votes
2answers
673 views

Jquery lightbox(Salesforce Default) Render issue on VF page,

I am using Salesforce default lightbox on VF page. Actually My intension is to display a popup of editing record in a page block which is embedded in output panel as shown below screenshots Please ...
0
votes
1answer
3k views

change header and footer on window.print

I have a visualforce page and also the link that run javascript command window.print(). As my task I must to change the footer link when the print page is opened and also remove date from the header ...
2
votes
1answer
627 views

Filling a third party PDF form with Salesforce data

I have been trying to figure out how to fill a PDF form with contact data and I found a helpful post here. I followed the instructions but it didn't say what to do with the code or how to set up the ...
1
vote
1answer
987 views

Render Two Column Lightning Flow Runtime in a Visualforce Page

I have been working on rendering a Lightning flow in a visualforce page. Main reason I want to accomplish this is to allow for a redirect to the new record along with a good looking flow for my ...
5
votes
1answer
450 views

Using SLDS icons in inline VisualForce page within managed package fails due to 302 redirect

I am currently creating a managed package and am running into a problem which I think others will or have also faced while deploying a package using lightning components which are optionally wrapped ...
2
votes
1answer
520 views

rerender input file losing file.?

I am rendering <apex:inputfile> by adding a new row but I am losing file when I click add row button. I am able to add a new row but the path is lost. Please help! <apex:repeat value="...
0
votes
1answer
18 views

Are Visualforce templates possible in Visualforce email templates?

So, let's say you want really beautiful emails sent from Salesforce. You build all the HTML to make them look amazing and add a bit of Visualforce to make them more dynamic. But then you add a couple ...
-2
votes
0answers
25 views

Custom Controllers within Visualforce Email Templates For hyperlink Getting Invalid Link

I am trying to create a VisualForce Email Template, in this emailTemplate i need to get value from Custom Objects.(This Object is not related to Any other Objects - This is the Object Which i am ...
1
vote
2answers
778 views

Dependent picklist value is “undefined”

I have two picklists ...a controlling and its dependent.On button click I am trying to get its values in a javascript variables.The problem is I am able to see the controlling picklist selected value ...
0
votes
1answer
779 views

Display External Webpage in Lead

I am a new Salesforce Admin and we are currently setting up our account. We are currently capturing a leads LinkedIn profile URL on our leads. I wanted to display the users linked in profile via an ...
3
votes
1answer
2k views

UI for custom merge

I'm working on a custom object merge feature and am having difficulty replicating the standard SF merge UI. I'm hoping to use <apex:selectRadio> to display field values on a row, with the ...
0
votes
1answer
14 views

Assign child to parent with objects in the same method

I need to assign the child of a parent record that is in the same method. Would I have to insert it before assigning the Id to a parent? //Add row method for both lists public ...
0
votes
1answer
26 views

Using Custom Controllers within Visualforce Email Templates

I am trying to create a VisualForce Email Template, in this emailTemplate i need to get value from Custom Objects.(This Object is not related to Any other Objects - This is the Object Which i am ...
0
votes
0answers
11 views

contentType=“text/plain” is not taking in line breaks in a visualforce page

I have built up a Visualforce Page, which gets built up dynamically and is sent over as an Email Template <apex:page controller="EmailController" contentType="text/plain"> ...
0
votes
0answers
34 views

Standard New button Visualforce Override shows blank page in Lightning Experience after Winter '21

We've been experiencing an issue just after Winter '21 that on objects that have been overridden by a Visualforce Page for New button, the New action only works first time, if users instead of ...
1
vote
0answers
8 views

Visualforce page apex:actionfunction form validation

I have an action function that is being used to call a save method on controller which is reloading page. When I call this save method from a command button, there is a validation on the form fields ...
1
vote
1answer
587 views

How to load Tableau in Salesforce Visualforce via the Tableau Javascript API?

I'd like to load the following Tableau Javascript Code within Salesforce Visualforce. Although it works, in a browser (see codepen here), I get the below error in the console when I put it in ...
0
votes
1answer
19 views

Instantiating new records to clear fields after adding to list not saving due to required fields

I have a custom controller that clears the form so that users can input another record in the list however it is requesting required fields be filled upon calling the saveAll method - even though ...
0
votes
1answer
552 views

Send case attachments in visual force email template

Does anyone know if its possible to send case attachments using visualforce email template? Currently, I have got a process builder that triggers an email related to case details once case is closed. ...
0
votes
0answers
14 views

Update a field without displaying it in an Apex Page [closed]

I want to update a field on a "wizard" we created for an Opportunity to move to stage. I can't find a way to update a field in my opportunity object, without having to display it. Say, I ...
0
votes
0answers
13 views

How to get the API names as headers in Excel while exporting from VF page [closed]

we are trying export child records from parent. we are getting export file in excel sheet with labels as headers.how can we get api names as headers in excel sheet.
0
votes
0answers
14 views

Visualforce not showing input fields in a public community without login

I have a public community with a visualforce page as a payment gateway. With login it is displaying it correctly . But without login , its not displaying the input fields of the vf page. i have given ...
0
votes
1answer
21 views

why the border of my table from my email template does not appear when i send that template via email? [closed]

<style type="text/css">.c16 { border:1px solid black; border-collapse:collapse; padding:2px; cellpadding= 2; cellspacing= 0; } .c16 th ...
0
votes
1answer
19 views

Unable to populate Account field on Contact using Maps

I am trying to populate Account Type on Contact by creating custom picklist 'Type' using Maps. //Code public class ContactAccountMap { public void accountMap() { Set<Id> accountIds = ...
0
votes
0answers
14 views

Error message when selecting french for language=“fr” in visualforce page, but no error for other languages

I'm using the language property to translate the public visualforce forms to set the language to either english or French. These are used through sites to make them publicly available. When I use ...
3
votes
1answer
476 views

Remove Recent Item suggestion for Visual force lookup

This is my VF Page: <apex:page standardcontroller="account" doctype="html-5.0"> <apex:form > <apex:inputfield value="{!account.FAccount__c}" html-...
0
votes
1answer
15 views

Lost Formatting with Public Visualforce Page

I lost some key formatting when making our VisualForce page public, and I'd like to know how to correct this. I've made the page public and enable public access to the static resources. Here is what ...
0
votes
1answer
28 views

Create access denied for custom object for Community users

I am getting the following error on vfpage Error: core.apexpages.exceptions.ApexPagesGenericException: system.security.NoAccessException: Create access denied for Shipment_Quantities__c, controller ...
0
votes
1answer
472 views

Upload file in Vf page (Problem in calling controller method)

I've create a vf page; and file upload functionality when i select the file and click on upload resume button, the file will attach as required it works fine. But i dont want upload resume button. I ...
2
votes
1answer
23 views

Can String literals be passed from from a VF Page to VF Component then to Apex Controller to be modified?

I have an interesting situation where I'm testing a VF Component by passing string literals from a VF Page. Some of these strings are then fed to a Custom Component Controller to be modified before ...
2
votes
1answer
757 views

Formula Expression is required on the action attributes

I am using an action function which seems to work, but I also need a javascript callback. When I specify the oncomplete attribute with a javascript invocation, I get an error: Formula Expression ...
0
votes
2answers
1k views

Render in Command Button

I have a question on how to use render on command button? <apex:pageBlockButtons > <apex:commandButton onclick="appendSelected(); return false;" value="Select" /> <apex:...
1
vote
1answer
22 views

Invalid field Last_Name__c for SObject Scholarship_Award__c

I have an <apex:pageBlockTable> on a VF page that references an sObject list containing records from 2 objects. As soon as I reference a field that one object doesn't have, it throws: Invalid ...
0
votes
1answer
56 views

reRender Page Block Sections Based on Selected Value of a selectList

I am creating a Visualforce page and I have a section where I want to add in a Select List with three values and based on the value that is selected I want it to display a specific Page Block Section ...
3
votes
5answers
14k views

How to extract the time into a formula field?

I want to extract the time component of CreatedDate (standard field) into a formula field (which should be a string) that contains just the time part. So if CreatedDate is Jan 4, 2014 17:23:10, ...

1
2 3 4 5
319