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
2answers
793 views

How to show/hide a commandButton or inputField or outputField in a custom visualforce page from a custom controller?

There is a custom visualforce page with a bunch of fields and a save button at the bottom. If the URL is bad/incorrect, I would like to hide the fields and the button on the page and display a ...
0
votes
0answers
10 views

DOM Exception JSON.stringify - Error in Console

In Salesforce Classic Console: On a visualforce page I am taking captured events from that page and writing them to a variable. It seems no matter in what context or how I use JSON.stringify, the ...
0
votes
1answer
577 views

Is there any way get the customer chat window in the same window. rather it open in different window .like i want like live agent popup

I want customer chat in the same window rather it open in new window .I don't want to open in separate window it will happen in same window . like popup chat window
0
votes
1answer
12 views

Get field information from a record/object selected as a lookup field

I have a VF page that uses standard controller Account and an extension DonorSearchCon. When I select a Regional_Chapter_Name__c lookup field, from my VF page, I would like to query the record, and ...
0
votes
0answers
11 views

Is there a way to give a button pressed down token trough url

I have a visualforce page of a managed package which has a button to submit a quote to an external service. Is there a way I can submit(click the button) trough a variable in the url. My Url is: ...
0
votes
1answer
31 views

Is there a way to make the static recource name dynamic

I want to have a field in which I save the static resource name and dynamically show this in a visualforce page see my example if this is possible: <apex:variable var="Logo" value="{!Account....
-1
votes
0answers
13 views

How to enable chatter on vf page for a custom object?

<apex:page > <chatter:feed entityId="{!$User.Id}"/> </apex:page> How do I replace entitiyId with another custom object so that Chatter feeds of that particular custom object gets ...
2
votes
1answer
24 views

Pass value from apex component to controller

I have a visualforce force component: <apex:component controller="NewITAssetController"> <apex:outputPanel> <label>Date field</label> ...
0
votes
2answers
23 views

How to find out previous URL when navigating from force.com site to visualforce page?

I have an inactive site like http://abc-company.cs95.force.com/Event I have set Inactive site home page to visualforce page RedirectEvents. When user navigates to a site page which is like http://abc-...
6
votes
2answers
3k views

How do I add Chatter onto a visualforce page? Is it possible ?

Hi I just migrated my portal to communities. And I've added extra functionalities such as self registration and my profile page. I'm wondering if its possible to add a salesforce chatter onto a ...
0
votes
1answer
577 views

InputText for capturing Date field

I have a Date (Completed_Date) field in my Timesheet object which I want the users to be able to update and Save after a Timesheet is submitted. I have been able to pass the field from Controller to ...
0
votes
0answers
11 views

Redirect to non-default tab on recordpage from Lightning Component

I'm using a lightning component to update a record. For the lightning whole application to work well, it has to reload completely. After updating the record, I use lightning-navigation to create the ...
-1
votes
0answers
18 views

Visualforce page Alert is not popping up

We have created a visualforce page for case creation from Community and using it at 'Contact Support Form' of community. When user enters values in all the fields and click submit button, it should ...
-1
votes
3answers
32 views

Error Error: Compile Error: Unexpected token 'lacc'. at line 5 column 4

public with sharing class Myfirstvfclass { public list<Account> lacc { get; set; } public Myfirstvfclass{ lacc=new list<Account> ([select id from Account]); } }
0
votes
0answers
9 views

visualforce form input text field not allligning properly

I have small help, i am designing visualforce page for displaying a web to case form, but when i click the preview button, the input fields are not showing properly, i even tried the & ...
0
votes
1answer
13 views

Render if variable contains text value in visualforce

I am trying to use render if condition on a viasualforce based on a value containing a string but this seems not to work. What am I missing? See: <apex:pageBlock title="Manuals"> ...
0
votes
1answer
20 views

Can we have Popup alert on Standard page before saving a record [duplicate]

I want to have a validation before saving a record on standard page layout of a custom object. before saving a record a popup message should be displayed. is this possible using any customization or ...
0
votes
0answers
22 views

How to Block detail page(PageLayout ) on update from inline Visualforce page? [on hold]

In my Opportunity Pagelayout I have a inline VF page, which basically contains few fields of opportunity. Whenever I update those fields from inline VF page , I want opportunity detail page to be ...
0
votes
2answers
728 views

how to put if else condition in visualforce page

I am facing problem in putting if else condition in VF Page.There is a page which is not taking <apex:panelGroup rendered="{!taxa=='GST'}"/> condition. When I am putting <apex:panelGroup ...
1
vote
2answers
43 views

Not able to call Custom Apex Rest API from Visual-force page in java-script (POST redirect to GET)

I have a requirement where I need to call my custom written Apex REST api from java-script in visualforce page, But somehow I'm getting that CORS issue which says my request has been blocked due to ...
1
vote
1answer
559 views

Customer Communities - Inactive Site Home Page

I have a customer community with Tabs+VF template and not yet activated. I navigated to Setup->Develop-->Sites then select the community and set "Inactive Site Home Page" to a VF page. Per the ...
1
vote
1answer
33 views

Page Reference not redirecting

I am overriding the case select Record Type page. The page shud redirect to a custom VF page if selected record type is 'Support' else to the standard Case page VF Page : <apex:page ...
0
votes
1answer
701 views

How do i pass data from visualforce page to component's custom controller?

I have a modal in the visualforce page that i want to move to its own component, for the most part its just displaying information. The data passed to the conponent controller constructor doesn't ...
3
votes
0answers
57 views
+100

Link to new SObject page from list view button in Lightning with defaulted fields

My org just recently switched from Classic to Lightning, and there's one limitation I'm having a lot of trouble working around. Before the transition, we had a lot of URL hack buttons linking to the ...
4
votes
1answer
56 views

Can you output map values in visualforce inline using a string key?

Can you output a value from a map in a custom extension without or it being in a table? Tried the below and did not work. example extension: public without sharing class Example { public List<...
2
votes
1answer
608 views

Convert VisualForce Page including some JS-constructed DOM to PDF

I have a VisualForce page that I need to convert to PDF. Now the challenge is that this page has a few components constructed with JavaScript (including, but not limited to, jQuery), so 'runAs="pdf"' ...
0
votes
1answer
20 views

can someone please help me out with this error :Unknown property 'Display_Set.temp'

Apex: public class Display_Set { public string name {set;get;} public integer age {set;get;} public class Display_set_1 { public set<Display_Set>s1{set;get;} public ...
0
votes
1answer
15 views

I have an error while moving to 'Setup' screen from 'Home' page in SF sandbox

while moving from Home to Setup page, navigating from button at right upper corner in sales-cloud enterprise edition. I am facing this from last 1 hour.
0
votes
1answer
19 views

Loading Iframe in lightning component, slows down the loading time of page. Any alternative?

We have many iframes with relative visualforce page urls inside lightning component. And these all lightning components are displayed on Lightning Sales Console app inside a flexipage. This results ...
0
votes
1answer
593 views

Lightning Action to VisualForce Page. Why opens in new Window?

I have lightning action set to open VF page. But not sure why it is opening into new browser window. Is there any hidden configuration? i do not see any navigation rule on Lightning action edit page.
3
votes
1answer
653 views

How to produce correct DateTime Format in Apex: Outputlink / Apex: Param

I am using a visualforce page email template in which Recipient is a Contact, relatedTo is an Event, it dynamically generates an *.ical Attachment. That works just fine by using <apex:outputText ...
0
votes
1answer
692 views

Issue in Login | Remote Access 2.0 | Password Lockout | Connected App

I am unable to login either directly through login.salesforce.com and unable to generate token through rest/ curl call (Connected App) for one of the user. The issue is locking of the user ...
0
votes
1answer
28 views

query contacts agains variable on controller to update value

I am trying to put in a query for a value that is entered in a field on the visual force page. When the submit button is selected it will go through and query the contact data and match the email ...
0
votes
1answer
33 views

Can i call the salesforce Add products screen from a VF page?

I have VF page and i am trying to add Opportunity products from the VF page itself. I love the way the add products screen is currently in lightning experience. My question is Can we someway ...
-3
votes
2answers
37 views

System.QueryException: List has no rows for assignment to SObject Class.CurrentPage_Call.<init>: line 7, column 1

Apex: public class CurrentPage_Call { public Account acc{set;get;} public String acctId{set;get;} public CurrentPage_Call(){ acc=new Account(); acctId=ApexPages....
1
vote
1answer
18 views

Guided Visual Flow

I am looking to build out a guided flow for some of my users for when they are out on site performing a Survey. I have a site survey object built that is comprehensive and captures all the information ...
0
votes
1answer
18 views

How can visualforce page lists be lists be dynamically filtered?

I need to be able to filter leads and opportunities based on a partial or complete postcode. When this is entered I need the Leads and Opportunities to only contain the matching rows. Page Layout ...
2
votes
1answer
565 views

Under Construction displaying in Site after updating VF functionality

I have a small Site that has been deployed for a year or so with read/write access to a single custom object. I recently added a new field to the object and one of the VF pages, and modified the ...
0
votes
1answer
630 views

Link upload file to Lead Record

Good day how does one link an inputFile upload to a Lead record? I have created a visual force form with some text fields and an input upload field to save on to the notes and attachment section. On ...
0
votes
1answer
29 views

How to conditional render an icon in component

I need a reusable component that will conditionally render a resource icon on a visualforce page. <apex:page title="Visual Test"> <apex:pageBlock title="Result Component"> ...
0
votes
0answers
16 views

Jquery inside apexpageblocktable

I am having a pageblock table with three picklists. based on one picklist value and text the second picklist would generate the values and based on selected second picklist value and text the third ...
0
votes
1answer
701 views

How to compress a zip file

I have code that generates text file(text file can be of greater size) now when user view it, it should download as a compressed zip file. Let me know any suggestion. Below is the code which is ...
-1
votes
1answer
3k views

Trailhead Advanced Apex Specialist - challenge 3

chartHelper run as system but still getting error. I have tried all possible ways but no luck. Can someone please help. Challenge Not yet complete... here's what's wrong: Ensure that the methods in ...
-1
votes
1answer
26 views

Adding Multiple records in single save using visualforce page

Error: MultipleAccountsRecord line 9, column 6: The end-tag for element type "a" must end with a '>' delimiter Error: The end-tag for element type "a" must end with a '>' delimiter. VF code: &...
0
votes
1answer
19 views

How to Add fields to step1 in Merge my accounts screen?

On click of "Merge Accounts" action link from account page it will take us to merge/accmergewizard.jsp wizard where we can Merge Accounts by Finding Accounts. On click of Find Accounts button you will ...
0
votes
1answer
12 views

Dynamic field labels in vf page [on hold]

i have below VF page that is look alike of standard detail page. Now I need to change field labels in the vf page as per the user language. Can someone suggest a way out please?
3
votes
1answer
611 views

Cancel button and immediate=true not working

I have a inline VF page where i show child records of the object. The child records are rendered in a apex:pageblock table. I am using apex:inlineeditsupport to enable inline editing of the fields for ...
1
vote
0answers
17 views

RecordEditForm throwing error on sites with LightningOut when given a record Id

I created a lightning component which has a simple recordEditForm to allow users to edit/create contacts. Using lightningOut, I embedded it in a VF page, and then exposed the page to a Force.com site. ...
0
votes
1answer
327 views

Navigate to Visualforce from Flow in lightning experience

I've got an issue while using the Flow embedded into a VF Page. I would like to redirect the finishLocation of the Flow to another VF Page, without loosing the Lightning Experience contest, Anynone ...
0
votes
2answers
33 views

Error: Invalid field 'size' for SObject 'OpportunityLineItem'

I would like to check the size of the OpportunityLineItem related list in a Visualforce Email Template like below, where relatedTo is an Opportunity <apex:outputPanel rendered="{!relatedTo....