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

VF Component: Wrong type for attribute. Expected <someType>, found String

Simple use case of passing a parent controller's instance to a custom VF component's attribute to allow for inter-controller communication Component <apex:component id="SomeComponent"> <...
0
votes
0answers
17 views

How to stream the barcode using input type file with out click capture button [duplicate]

How to stream the barcode using input type file with out click capture button. my requirement is Need to stream the barcode and get the barcode value with out clicking capturing button.once input file ...
0
votes
0answers
16 views

How to auto scan Barcode in SF1 app without clicking image [duplicate]

We have a requirement to decode Barcode of Product in salesforce1 camera and store the decoded barcode value in a custom field on Product. where I want to auto scan Barcode from SF1 App camera ...
1
vote
1answer
16 views

HTML error in VisualForce email templates

I created an email template in HTML and want to use this for a visual force email template. When inserting the HTML my code gives many syntax errors. When using the same HTML in a regular HTML ...
2
votes
0answers
54 views

Managed package inline VF page not working: login.salesforce.com refused to connect

We are working on a managed package and having a VF page that can be added as an inline page. While testing it in the installed org, that inline page is not rendering sometimes and it's showing the ...
0
votes
0answers
25 views

How to get all record Ids of the View that is currently opened by clicking a button

How to get all record Ids of the View that is currently opened by clicking a button. (I have used {!GETRECORDIDS($ObjectType.obj__c)} but for this we have to select the records, I want to get Ids ...
0
votes
1answer
24 views

Window.local message should be retained even if the window is maximized

In the softphone layout for the CTI integration I am sending the data from visualforce page to other page by using window.local storage. I am able to send the data. But the layout has a maximize ...
0
votes
0answers
19 views

Passing Javascript Array to Apex Controller always results in null values [duplicate]

I have a Visualforce page where I want to pass a javascript array in Visualforce to my Apex Controller. However the values are always null in my List in Apex. I have a commandButton that fires ...
0
votes
1answer
14 views

Visualforce Controller to Enter Approval Process

I have a Visualforce page that is designed to allow an approver to either approve/reject an Opportunity as a Final decision, or approve the Opportunity and then send it on for another approval. The ...
0
votes
1answer
33 views

get set fields have stopped working

Get and set methods have stopped working after I customized my page with Bootstrap validator. This was working fine until this morning. I have now also tried removing all and bootstrap JS libraries ...
0
votes
0answers
40 views

How to store a collection type (set, map, list) on a object?

I have a visual-force page which displays an Apex form with some dynamic number of input text fields that I would like to save on the Opportunity object. Is the easiest way to serialize them as JSON ...
0
votes
1answer
22 views

Formatting Time after clocks change

Background I have a simple apex function which returns a date time formatted using a time zone: public String getFormattedDatetime() { TimeZone tz = UserInfo.getTimeZone(); return ...
0
votes
1answer
33 views

How to execute Batch Apex form Visualforce Page?

I have three batch classes, I want to execute all three batch classes through button click using visualforce page at the same time. `LoanofficerBatch lob = new LoanofficerBatch(); ...
0
votes
1answer
32 views

VF outputtext with value if contains condition and currency format

I want to format my Amount with currency and at the same time use the condition contains, bur I'm not sure how to put it Currency is working: <apex:outputText value="{0, number, currency}" ...
0
votes
0answers
32 views

CPQ - Generate Document questions

All - I've converted the Generate Document button on the Quote object into a hyperlinked formula field so that we can display it dynamically based on the quote's Status field. I have two questions ...
1
vote
1answer
19 views

Set focus on <apex:pageMessage/> after redirect

I am setting an error paremeter then redirecting to another VF page like this: PageReference backtosite = new PageReference('/apex/Fs_ViewSiteAddress?id='+parentId); System.debug('...
0
votes
1answer
60 views

Dynamically replace merge fields from an Email Template in Apex?

I want to replace the merge fields in my email templates with values I have in my class, with the intention of serving them in the front end for users to further edit. My template looks like this: ...
0
votes
0answers
22 views

Chart Not display in visualforce

My code are saved without error but the chart does not display in the VF page portion of the VF page: <apex:page renderAs="pdf" showHeader="false" sidebar="false" applyBodyTag="false" ...
0
votes
0answers
14 views

Onclick Javascript function alternative for Lightening No URL Found Error

I am trying to update staic URL's our classic to lightening Visualforce page migration.how we can use JS Function which opens the Subtab, is there any way to use JS function for lightening we have ...
0
votes
1answer
39 views

How to capture the barcode using camera stream in visualforce page?

How to capture the barcode using camera stream in visualforce page? My requirement is, from visualforce page we need to open a camera in mobile device and i will show the barcode. with out capturing ...
-1
votes
1answer
18 views

inserting parent and multiple child record but iam getting error

Apex Class: public class OpportunityExtn { public Opportunity op {get;set;} public List<Customer__c> cust {get;set;} public Boolean showOpty {get;set;} public Boolean ...
0
votes
0answers
17 views

Redirect from visualforce with basic authorization header

Is it possible to send a Basic Authorization header from a visualforce page and redirect a user to a different non-sf site? If not any way on how I can do this? I was able to send a HTTPRequest with ...
0
votes
0answers
39 views

Communication from Lightning component to Visualforce page to custom controller

I'm following this example: https://developer.salesforce.com/blogs/developer-relations/2017/01/lightning-visualforce-communication.html ... and the example works great. In summary, it basically ...
0
votes
1answer
11 views

Object New button overriden with VF, loads continously

I have a vf page that overrides a custom object's New Button. The original purpose for this was to run a custom check in the constructor, if that check passes I want them to be redirected to the New ...
0
votes
1answer
25 views

Visualforce as Word doc editable on mobile [closed]

Is there a way to make a visualforce page that is rendered as a Word document editable on mobile? If not, is there some other format that would work for this?
0
votes
1answer
43 views

Is there a way to disable Browser Close[X] button? [closed]

We have a working solution wherein an Opportunity is closed(won/lost), a pop up opens and series of work is done(like a wizard). The pop up is created as per the below code: <apex:page ...
0
votes
0answers
19 views

Resize the Scrolling Div dynamically base on Content from the Server

I have a Div with input text and scrolling, which a click on that input, will bring accounts from the server using action function and allow the user to search for his account dynamically. Until that ...
0
votes
0answers
16 views

Cross-domain problem when use VF component from managed package

The original problem is that one of our customers can't use our VF component in their org because of Access to XMLHttpRequest at 'https://c.xNN.visual.force.com/apex/yourpath' from origin 'https://...
0
votes
1answer
11 views

Static resource not able to access global merged fields

{!$Component.idPageTestCase.idForm.idFocusedTab} This works well when it is there in Javascript tag inside visualforce page, but fails when the Javascript is moved to a static resource and the static ...
0
votes
0answers
11 views

VF Email template not including child records when sent from trigger

Below is my VF email template which includes all child records when I use preview functionality in salesforce, but doesn't include child records value when sending it through trigger. <messaging:...
0
votes
0answers
28 views

How do I conditionally render a link in a visualforce page based on the logged in user

I am trying to conditionally show a Link on a visualforce page based on the logged in users profile. I can't seem to get this to work. <apex:outputLink rendered="{!IF($User.ProfileId == "...
0
votes
0answers
11 views

Different URL format of managed-package VF page preventing it from embedded loading in page layout

I'm working on a managed package.  I deleted and reinstalled it and the VF pages appear to have a different URL format.  That wouldn't be a big deal except we embedded a VF page in page layout.  I ...
0
votes
0answers
13 views

Can I disable Holidays in InputField DatePicker?

I would like to disable specific date in apex:inputField. We use apex:inputField to select delivery date and set Holidays at Company Settings. But,We don't want users to select delivery date on public ...
0
votes
1answer
15 views

display rendered values on the same line

I made a < apex:reapeat> tag within a table and I want to use rendered to display or not values from a list, base on an input search. The problem is if I have 5 values in the list for example: ...
0
votes
0answers
20 views

Permission missing for creating Notes in Lightning Experience

I have a custom link to redirect the user to create a new note. In Salesforce classic, the custom link works and the user is able to create a note. When I switch to Lightning Experience and click the ...
0
votes
1answer
35 views

Passing a record variable into Lightning component iframe

Apologies for the noob question here: I am creating a Lightning Component that will dynamically render a VF page embedded in a Lightning Component as shown below: <aura:component implements="...
0
votes
0answers
14 views

Lead Status and custom field not viewable and editable in VF page for other profile

I have a VF Page for Update of Mass Lead. There are 2 profiles, "Profile X" and "Profile Y". In the "Profile X", I can view and edit the standard field Lead Status and custom field Lead Status Reason. ...
0
votes
1answer
20 views

Unable to edit/view Archived Task when using VF Override

So, a while back I wrote a custom vf page for our tasks detail view. We wanted to add some way to track task edits, which is the <c:TaskHistory />. Now thats not the problem - just the starting ...
1
vote
1answer
90 views

Overriding Standard 'NEW' button using Visualforce or Creating custom button and replace standard button

Using a Before trigger/ Workflow has not helped me fill in or provide a default value to a standard field(NAME) while saving a new record. I was asked to build a Visual force page and then override ...
0
votes
2answers
38 views

Getting customer ip address

I am trying to get customer ip address from my site(visualforce) page, trying to run the following javascript but unable to get the ip address. Any suggestion/improvements are appreciated, Thank you ...
0
votes
1answer
22 views

calling to the server with actionfunction and settimeout

I have a search input on VF page which every character that printed on the keyboard will show the closest result, using actionFunction. for example : If I printed "uni" all accounts that they names ...
0
votes
0answers
21 views

How to render blob pdf file from Attachment or Notes of a record in visualforce component?

I created a visualforce email template that should attach a file from a record Attachment which is of pdf format. How to render blob pdf file from Attachment or Notes of a record in visualforce ...
0
votes
1answer
20 views

In classic email template how to add an attachment from record Attachment?

Created the following: Workflow with alert notification using classic email template. Document controller that queried Attachment object Apex component to be used in classic email template ...
-2
votes
2answers
50 views

Can we invoke data from class without getter and setter methods [closed]

Is it possible for visualforce page to get values from apex class without using getter and setter methods? if yes means Please provide an Simple Example
0
votes
0answers
17 views

URL for creating new listview of any object salesforce classic

URL to create new listview in Salesforce classic. https://naXX.salesforce.com/ui/list/FilterEditPage?ftype=c For contact ftype = "c", Account: ftype="a" and Case: ftype="t". How to get ftype value ...
0
votes
0answers
9 views

How to open different new sub tabs when the links opened using sforce.console.openSubtab();

I have a custom email section under case, we have written the custom vf page with sforce.console.openSubtab(); to open the link in new sub tab from console. Now, at a time we can open only one sub ...
0
votes
1answer
27 views

ActionFunction is loosing letters when making a dynamic search

I have a search input which every character that printed on the keyboard will show the closest result, using actionFunction. for example : If I printed "uni" all accounts that they names include the ...
0
votes
0answers
20 views

CSS getting distorted when showHeader=“true” in Vf page

I have a well know issue here i have to use show showHeader="true" but my page's entire CSS is getting distorted. I have gone through this post which suggests to install VisualStrap but again only ...
1
vote
0answers
40 views

Refreshing one Visualforce Component from another

I have a Visualforce component, FavoritesButton, that appears in multiple places on a Visualforce Page. When you click the component, an Action Function calls the controller to update, and the clicked ...
0
votes
1answer
30 views

Creating a lightning compatible button that runs an apex method

So it's simple i have a list button on an object that executes JS to do updatePeripherals() Which simply runs an apex method. Now my solution would just be to create a VF page that runs the script ...