Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
21 views

Toggle between checkboxes in VF Page

I am new to VF and need idea on toggling between three checkboxes. Is it better to use Radio button in this case ?
1
vote
1answer
24 views

Visual Force DML Not allowed

I am getting a DML not allowed error from my visual force page. The error is caused by an update and insert call in a method which seems to be the constructor. Can someone give me a solution to how ...
1
vote
0answers
32 views

How to fetch multiple selected record Id in conga composer from visualforce page?

When i selected multple record and click on the Button then On redirect conga composer then showing this error like:Not authorized. The [a0q6C000005aoY3QAI, a0q6C000005aoXoQAI] parameter ID is not ...
0
votes
1answer
24 views

Custom Hierarchy Error

Hello I am relatively new to Salesforce and am trying to create a visualforce Account Hierarchy page that displays more than 500 accounts. I'm receiving this error whenever I test out my link on most ...
1
vote
1answer
48 views

How to pass selected multiselect picklist and pageblock table values from one vf page to another

I have a multiselect picklist and pageblock table in a visualforce page i want to send the selected multiselect picklist value and modified page block table value to the next visualforce page This is ...
0
votes
0answers
24 views

Calling Salesforce Rest Webservice url from vf controller

Hi I am trying to make a rest callout from controller and I am not been able to get response . I am using apex continution callout pattern for this to make call async. This is controller class ...
0
votes
0answers
18 views

Nullpointer exception for the second time in Actionfuntion Visualforce page

Whenever i click on lookup first time i am getting the contact id, But when i click on the same lookup and select any other contact then its throwing error. Please need some help <apex:...
0
votes
0answers
30 views

How to create a attacment from visualforce site?

How to create a attacment from visualforce site? I have created godaddy domain in our salesforce and given certificates for domain. for this domain i have access to view the visuaforce pages.I have ...
0
votes
1answer
27 views

Could not resolve field 'Name' from <apex:inputField> value binding '{!cs.Name}' in page ProductCaseExternal

Trying to build a webpage for teams to be able to submit cases and attachments. For some reason I am getting a "Could not resolve field 'Name' from value binding '{!cs.Name}' in page ...
0
votes
1answer
36 views

PageReference with Spinner

I have two-page references, on the first page I am performing a DML operation which takes time around 1,2 seconds, and then it goes to the next page. What I want is a loading symbol for those 2 ...
0
votes
0answers
9 views

How can i put Read only once i save child object record Row from related list of parent object on visualforce page

I want to put read only once i save opportunity record dynamically from a related list of Account object on visualforce page. I have created a VF page in which I have used page block table. And when ...
0
votes
1answer
28 views

Display save success message only when the record is saved on VF page

I've a VF page to create cases. It has lot of workflows and VRs associated with it. While saving a record, if there's a VR error, the message shows at the top of page, however, I'm also able to see ...
0
votes
0answers
10 views

Opening the subTab with the field update by the Apex method via visualforce page

I have a list of records displayed (in my case a list of surveys). I want when the user clicks on the link (it can be a button) the system opens the survey record as subTab with the simultaneous ...
0
votes
2answers
21 views

Delete button is disabled due to time out issue

I have a page where websites are built by the users. When an user tries to delete the site from the page, the page is throwing error stating there is some issue and the delete button is disabled ...
0
votes
1answer
42 views

Pagination next button not working Using Visualforce Page

Pagination is not working while clicking on next button Apex Code: /* Date:21/01/2019 Auther:SudhanshuDescription:Account Search input box * / public class AccountEmailAlert { public Integer ...
0
votes
1answer
29 views

Unknown property when using html-data-id attribute in apex:dataTable

I am getting a unknown property error, when using the var from data table in a html-data-id attribute, it is working in apex attributes perfect. I can't figure out how to make it work for html-data-id ...
0
votes
0answers
6 views

Data mirroring and Community Cloud

I have a requirement like modification in the mirror object in community cloud should result a modification of the source object in Salesforce and a modification in the source object, will update the ...
0
votes
1answer
70 views

Service cloud snap-ins pre-chat form

I am using snap-in with pre-chat enabled to implement chat functionality on our website. I am using the code snippet that is generated by the snap-in. Everything works great but I have 2 questions: ...
0
votes
1answer
40 views

Visualforce Error - The dependent picklist requires its controlling field on the page

We've got a custom object called Cost__c. We've got a custom VFP for this. I want to add a dependencies between two fields, Product_Type__c and Total_Number_of_Pages__c. Both fields are on the VFP (...
0
votes
0answers
12 views

iFrame VF page does not direct user to top of Page

I have a form that lives as an iFrame. When the form is completed, I am calling a thank you page. Unfortunately, the user sees a blank page, but if they scroll up, then they can see the thank you ...
4
votes
2answers
48 views

How is an object instance passed with apex:attribute reflected in ViewState?

BACKGROUND I want to build a wizard using Visualforce Components. For this I represent each step as a separate component. Each component has an attribute that represents a controller instance from ...
0
votes
0answers
10 views

Can't set global action for visualforce page in community builder

I created a global action to open a visualforce page, however this global action is not showing on the global action list in community builder.
0
votes
1answer
40 views

How to Re Render an outputPanel on a button click?

So basically I'm making a visualforce page and there is a section that needs to be re rendered on a button click. From what I've read on the internet I can use outputpanel to achieve this. What I need ...
0
votes
1answer
13 views

How to show a pdf response from external application as pdf on visual force page?

I am getting a pdf response from an external application and I want to show that data as a pdf on the visualforce page. The data is showing on the page but in a non-readable format.
0
votes
2answers
51 views

how to call javascript function from action function?

found error after clicking button'Genrate invoice' Error:: Uncaught SyntaxError: Unexpected token ** how to resolve this?? visual force page:: <apex:page standardController="Payment__c" ...
0
votes
0answers
34 views

HTML2Canvas not displaying image from Visualforce

I have built inline visualforce page on a record, which takes certain field values and manipulates a div image. The VF page also takes another Rich Text Area fields picture and adds that too. Using ...
0
votes
1answer
40 views

Save Visualforce DIV to Salesforce record field as image

I have an inline visualforce page on a record, which takes certain variables from the record and produces an image. What I would like to do is to save the image into a rich text field on the same ...
0
votes
0answers
12 views

Fail to show a vf page containing lightning component with lightning container in lightning experience

I am trying to load a lightning component on click of a list button from a list view in lightning experience. So for that, I have embedded lightning component in vf page. This custom lightning ...
0
votes
0answers
57 views

WebSocket connection to '' failed: Error during WebSocket handshake: Unexpected response code: 405

I am trying to subscribe to platform events on VF page. But getting WebSocket connection error. Not sure what am I doing wrong. <apex:includeScript value="{!URLFOR($Resource.cometd, '/newCometd/...
0
votes
1answer
25 views

Input form and table on the same page. But only one is working

I am creating a Visualforce page. On that page I want to have a form to save new records and below that I want to have a table that shows all thata from that object. I created this, but the problem ...
0
votes
0answers
34 views

Unable to push files to the scratch org due to some apiversion error

I am getting an error when I try to push my files to the scratch org. Error: Flows must be used with a minimum API version of 44.0. Make sure that the sfdx-project.json file is set to use "...
2
votes
1answer
80 views

Is there a way to create a searchable picklist in a visualforce page?

I have a picklist field and I was wondering if there is a way to add a searchbox at the top of the picklist where we enter a picklist value and it searches through the picklist to find the values. ...
0
votes
0answers
22 views

Visualforce Button in Lightning

Is there any way to close a subtab in Lightning using Javascript? When the button flow is ran, a new subtab is opened. Below is my VF Code. <apex:page standardController="Case">> <...
1
vote
2answers
39 views

apex:param not working, Values are not passing to apex

The apex:param is not passing the contact value to backend. Please correct me where i am going wrong. <apex:pageblocktable value="{!lstWrapContactRoles}" var="cr" id="pbt" > &...
0
votes
1answer
37 views

Issue with VF Custom Button in Lightning

I am trying to recreate the 'Close Case' Button in Lightning since SF does not have this as of now. I created a flow and referenced it in the VF code below and set the finishLocation to the original ...
0
votes
2answers
25 views

Is there a way to use SLDS and CSS for different sections of a VF Page?

I am making a VF Page in which I need to use SLDS in some places and CSS in others. The problem is that CSS and SLDS both interfere with each other and the UI gets really weird. Can I define a scope ...
0
votes
1answer
51 views

How to show attachments in Lightning knowledge

Referring below post: https://developer.salesforce.com/forums/?id=906F00000009CyyIAE I came to know I can display knowledge articles like attachment like this in classic <apex:outputLink value="...
0
votes
0answers
32 views

Custom Controller in Email Template not passing values to Class

I have created a simple visualforce email template: <messaging:emailTemplate subject="PRICING APPROVAL NEEDED for - {!relatedTo.CameleonCPQ__AccountId__r.Name}" recipientType="User" relatedToType="...
0
votes
1answer
24 views

The conga page is getting there,But Facing error Parameter Id missing? [duplicate]

when i select the records in vf page ,after click on the VF Button the conga should be call along with id for generating the PDF but on button click the window is opening but showing error that "ID ...
-1
votes
1answer
31 views

I am facing the error parameter Id is missing,while conga composer from VF page button click

when i select the records in vf page ,after click on the VF Button the conga should be call along with id for generating the PDF but on button click the window is opening but showing error that "ID ...
0
votes
0answers
14 views

how many option for convert a vf page in renderAs [duplicate]

how many options for converting a vf page in renderAs
0
votes
1answer
26 views

javascript don't get controller array in production environment

I have a VFP that read a web service to get positions, this positions send to js as array, in sandbox environment works well but when I make the implementation to production environment the arrays are ...
0
votes
3answers
45 views

How to get Apex:inputfield value in controller

I am trying to store value in an object using: <apex:inputField type="number" value="{!VS.Vegetable_Amount__c}" id="v0" /> in the controller I am doing this: public Expense_Object__c VS {get;...
1
vote
0answers
35 views

How to get an Apex Class (not controller) error message to display on a VF page [duplicate]

So we have a tool that manages a specific service ticket group, the VF page has its own controller with the account being the standard controller. But the case Apex class handler (we do most of the '...
1
vote
1answer
53 views

How to redirect to a record page?

I have a custom VF page in a section in the Lead layout. The page is showing a table with specific information. When I clink on the link I expected to see an account record page. The link is not a ...
0
votes
3answers
66 views

What is the difference between Apex:messages and Apex:PageMessages in VisualForce? [duplicate]

I am having some confusion while using PageMessages and Messages in my VF Pages. I'm using an apex controller to pass a message to my vf page but the problem is that if I use PageMessages then it ...
0
votes
1answer
14 views

What is the file limit when using AJAX Toolkit on Visualforce page

I am using html5 FileReader + ajax toolkit + soap API in my Visualforce page to upload a single file as ContentVersion. I'm able to upload files up to 37435519 bytes pdf file but I get this error in ...
0
votes
0answers
3 views

Is there a way to give customer community user access to lightning flow other than visualforce page

I have embedded a lightning flow(an intake form) in Lightning community template(Customer Service). But unfortunately, when I login as community user, I cannot see the flow. I was reading somewhere ...
-2
votes
2answers
39 views

Update failed. First exception on row 0; first error: MISSING_ARGUMENT, Id not specified in an update call:

Update failed. First exception on row 0; first error: MISSING_ARGUMENT, Id not specified in an update call: [] Error is in expression '{!SavingContact}' in component in page ...
0
votes
0answers
11 views

canvas app not passing the signed request when the customer org has SSO

we developed a managed package that includes visualforce with canvas app that displays a third app. the third app required SSO in order to login. I have installed my package on ED environment and ...