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
1
vote
0answers
10 views

Google Map full-screen control is not visible on chrome

I have implement a web page that include a google map component. In the map all other map controls(zoom, satellite, and etc.) are properly visible except the full screen control. The issue recreates ...
0
votes
0answers
19 views

Apex code behaving differently on different domains

We have a domain that is accessible once logged in to Salesforce, that we use to view VisualForce pages, like https://ourcompany.abc123.visual.force.com We also have a domain that has some publicly ...
0
votes
0answers
21 views

how to apply lookup filter in lighting

I have Created the case component through lighting and I have to restrict the field through lookup criteria. Can anyone having an idea for applying the filter in lighting code
0
votes
0answers
20 views

How to download a VF page as a PDF from Lightning button click without redirecting to that VF page? [on hold]

I have to Download a VF page as a PDF from a lightning Button , if click that button my page is automaticaly redirecting to vf page, can anyone help me ? Component : <aura:component implements="...
0
votes
0answers
18 views

Visualforce to Lightning Component

I'm trying to convert this to a lightning component. <apex:page standardController="School__c" extensions="SchoolController" showHeader="false" sidebar="false" lightningStylesheets="true" > &...
0
votes
0answers
15 views

Visualforce Page Not Appearing as Lightning Action Button

I created a Visualforce page with the intent of opening it with an Action button in Salesforce Lightning. Unfortunately, when I select "Custom Visualforce", the visualforce page I created does not ...
0
votes
0answers
20 views

Problem with zipping attachments in Visualforce

I have set up a solution using VF and JSzip. The Salesforce user has a list of attachments that display in a VF page and can select some of them to create a zip file. The zip file is then stored as a ...
0
votes
0answers
9 views

Custom URL button to Component with an Iframe

So my goal, pass two c__params to a lightning component which then passes those to an iframe (visualForce page). in the iframe(VF page) exists a button "Save" it called an apex method which returns ...
0
votes
1answer
12 views

Onchange picklist value not showing dependent picklist values

I am working on dependent picklist. I have a parent object on select Parent record in the first picklist I need to get all related child record in the 2nd picklist. This is working fine. But when I ...
0
votes
0answers
15 views

Get record lookup field lists in picklist Values [on hold]

I have category__c and Products__c objects. For Products__c controlling field is the category__c . I want to display picklist of category__c records. And also when I clicked on the picklist value(...
2
votes
1answer
30 views
+50

Einstein Sentiment - Not precise

I have used Einstein Sentiment, passing the message(parameter) and hitting the endpoint "https://api.einstein.ai/v2/language/sentiment" to get the sentiment of the statement passed. Following are the ...
1
vote
1answer
25 views

Alternate VisualForce page for OAuth Web Server flow

I'm trying to determine if it's possible to have two different Visualforce login pages so that some external apps use one Visualforce page to authenticate users, while others use a different page. I ...
0
votes
0answers
17 views

While adding reCaptcha in Visualforce page am getting error as ERROR for site owner: Invalid site key.need some help to solve it

recaptcha controller: public with sharing class reCAPTCHA2_Controller { public String myfName { get; set; } public String mylName { get; set; } public String myEmail { get; set; } ...
0
votes
0answers
28 views

How can i get url parameters on VF page that is in communities?

I have a community page and VF page is embedded. When I try to access url parameters using {!$CurrentPage.parameters.id} or even in the apex controller, it won't work. That same page will render the ...
0
votes
1answer
35 views

Value of the Multiple child record of One Parent on the VF page:

I have completed around 100% of the requirement , only part i am struggling to show the correct value of the two boolean field against there Parent For ex : Parent A : Child 1: (Field -- ...
2
votes
1answer
43 views

Access parent controller attribute from Visual force component

I have one Visualforce page and one Visualforce controller. I have different attributes defined in the controller of Visualforce page as shown below public boolean firstPanel{get;set;} public ...
0
votes
1answer
26 views

Display the Variable vale in the VF Page from Extension Class

Req is as below: I need to display the variable from the extension class of the Standard controller: Variable name is : String unreleasedCheck{get;set;} String unreleasedCertificat{get;set;} VF ...
0
votes
1answer
27 views

Testing a VF parameter is getting as Null?

I have a VF page that is used for rendering a PDF. All the fields are apex:outputText and getting the values from a form-submission-VF page. I am using just a constructor to set the values for this ...
0
votes
0answers
14 views

Assign default Value for Opportunity in EDIT Mode of Redirected page

Here I am trying to Update Opportunity Field StageName Field ID opp11 to Closed Won in Edit Mode by clicking on Command Button in VF Page. I am able to go to Edit Mode after button click but not able ...
1
vote
1answer
31 views

Send data from Lightning Web Component (LWC) to a Visualforce page

I am adding an LWC component in visualforce and need to add a handler for an event fired in the LWC component on the visualforce page. When googling all I can find is examples of how to do this with ...
-3
votes
0answers
25 views

My Child Record Values are not displayed on the Visualforce Page!

I have Requirement to show some of the fields from the Wrapper class and few from the Salesforce child Object !! My wrapper Class fields are getting displayed but Salesforce object fields are not ...
0
votes
0answers
13 views

How to accept input from user in one section and show all values in another section of same visualforce page?

Can anyone help me to accept values(Text, date , number and picklist) from user and show all entered values in another section of same visualforce page. I am using custom controller. Visualforce page-...
0
votes
0answers
18 views

Embedding External Dashboard within an iFrame

I have a requirement to embed a margin minder dashboard (this is a third party dashboard similar to tableau) onto the Account page. I have started building this using an iframe in a Visualforce page. ...
0
votes
0answers
17 views

Custom controller not updating a field of a local copy of a record

Okay, so I have this visual force page that is acting like a quiz and has the question generated from a custom controller that gives a copy of a particular question. The page is able to read the ...
0
votes
0answers
7 views

How to Show Specific Options for Lookup Field in Visualforce Page

Is there a way to specify what values are available for a lookup field that is on a custom visualforce page? The requirement is to only show certain values on a page that is creating a new object, so ...
0
votes
0answers
31 views

System.SerializationException: Not Serializable: dom.Document for displaying hierarchial Documents

Code is very big hence mentioning only relevant stuff , When I click on 'DocumentCallAll' tab, from the class I am getting the value in string jsonStr1 and then it need to pass on page and display the ...
0
votes
1answer
31 views

Cant seem to get code coverage on an extremely simple pageReference

public PageReference createAccountContact(){ newAccount = false; PageReference pr = new PageReference('/apex/NewAccountContact'); pr.setRedirect(false); return pr; ...
0
votes
1answer
32 views

How to access custom object fields on function in Visualforce

Very new VisualForce and Apex user here. Currently working on a Visualforce page javascript function in which I'd like to update fields on a custom object based on certain conditions. Each custom ...
0
votes
1answer
28 views

Conditionally Render Apex Column in Visualforce

I would like to conditionally render a column on my VF Page however does not appear to play nicely/support "rendered" logic. Any Help is appreciated! <apex:column> <apex:...
0
votes
0answers
14 views

Can I customize the warning message for On click event on Cancel button

I have created an onclick event on the cancel button in my visualforce page and it works as expected. I want to change the wording for OK and Cancel button to Yes, Proceed and No, Stay.Is it possible. ...
0
votes
0answers
12 views

VF page that includes a lightning app and an apex:tabPanel throws js error in browser console

Summary JS errors are thrown in browser console when including apex:includeLightning and apex:tabPanel in Visualforce. apex:tabPanel introduces scriptaculous which has conflicts with $A in aura. Does ...
0
votes
1answer
35 views

For loop to check if a list contains a string

I have a picklist on a visualforce page and I'm trying to filter by namespace prefix to display objects belonging to a package as well as the account and contact objects. I have the for loop below ...
0
votes
0answers
22 views

How can I get user input in <apex:inputtext> available in controller?

Controller I've created a page and class that allows my users to select and apply bulk payments on several invoice records at once. Right now when my users click the "Apply Payment" button on the VF ...
0
votes
1answer
25 views

Conditional custom button on page direct to URL if condition = true, display message if false

I have a custom button on a custom object page from which I generate a VisualForce PDF document (Content Source = URL). There are conditions, however, where the PDF should not be generated based on ...
1
vote
0answers
26 views

Pass values of javascript variable to APEX controller

VF Page: <apex:form id="fm"> <apex:actionFunction name="searchbox" action="{!searchbox}" rerender="pb"> <apex:param name="x" value="" assignTo="{!IsEmailValue}" /> ...
0
votes
1answer
34 views

How to pass the Value from One VF page to another Page without using URL param

I'm trying to pass the value from a page variable to another page (both using different controller) without using parameters. This is what am working on that. I have user search page with input ...
-1
votes
0answers
21 views

Onclick of checkbox in one vf page i want to hide button in another vf page [closed]

I have a requirement that if i select a checkbox in one visualforce page i want to hide button in another visualforce page ??.
0
votes
1answer
31 views

My wrapperlist is not showing up

I trying to create a table to provide metrics on the number of Account and Contact records grouped by state. So each state will have two number of count id. Below is a code for my class and visual ...
0
votes
1answer
47 views

Can I have PageReference within PageReference?

I am working on this requirement. I have a SaveAction() pagereference method in my controller on the Button click from the Input VF Page, where I am saving the VF page's input field values to an ...
0
votes
2answers
52 views

Hyper link in apex class for Email Body

In My Apex Class am sending email to user once registration completed. in that email am sending the text with hylerlink as Click Here to Complete your Registration Click Here click here should be ...
0
votes
1answer
24 views

Having problem with <apex:repeat > in displaying carousel images

I am trying to create a carousel with images being fetched from salesforce database. The carousel works fine when the images are hardcoded on the page but doesn't work when I use repeat tag and fetch ...
0
votes
1answer
32 views

How to expose visual force page using iframe on external website

I have been trying load a visualforce page using an iframe on an external company website. I have followed all the documentation to the best of my ability without luck. I understand that I must use ...
0
votes
0answers
26 views

Populating VisualForce Area (Home Page Component) with record count totals meeting criteria for the running user

I'm very new to working with visualforce and struggling to achieve the following. I want to create a Visualforce page / area component on the home tab layout which displays counts of records from a ...
0
votes
1answer
32 views

Search while Type functionality on VFP not working as expected between apex:tab transition

I have 2 apex:tabs (Primary Tab, Secondary Tab) in visualforce page which shows a table of accounts list. I have a custom script for "search-while typing" functionality with below script. //VFP <...
0
votes
0answers
11 views

When I have a pageReference that returns null, I lose my friendly url from urlRewriter

When my controller returns null in a pageReference method, I lose my friendlyURL. URLReWriter: global without sharing class URLRewriter implements Site.UrlRewriter { global PageReference ...
0
votes
0answers
11 views

Relate multiple contacts to activities in custom visual force page

In our Salesforce org, under "Activity Settings", the feature "Allow Users to Relate Multiple Contacts to Tasks and Events" is enabled. However, this seems to work only standard page layout when I ...
0
votes
1answer
46 views

Generating a PDF and attaching after clicking on Submit from VF page?

I have a simple Contact creationg VF page with bunch of input fields. Clicking on the Submit button would create a Contact record and shows a confirmation message on the screen. Now, I would like to ...
0
votes
1answer
29 views

How to get current logged in user's omni -channel assigned work queue in lightning experience or apex or in VisualForce Page

I want to fetch assigned cases or leads to a logged user in user in Omni-Channel, by using Lightning component or apex or visual force pages. I tried many methods but I am not getting a response in ...
0
votes
1answer
30 views

Site guest user problems to view lightning flow

I created a Lightning application to allow a visual flow to run with Lightning runtime. The problem is that when I run the force site as the guest user, the flow doesn't show correctly to the guest ...
0
votes
2answers
25 views

Get Picklist Value from Custom Settings in vf page controller

I am trying to fetch the pick list value from custom settings, i am getting Unknown property 'TestList' Error is in expression '{!CTest List}' in component in page this is my method for pick list ...