Stack Exchange Network

Stack Exchange network consists of 174 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.

1
vote
0answers
18 views

apex pageblocksection help text broken

I created a simple visualforce which has a form and an input field. I have give a help text to pageblocksection. Below is my VF page code. <apex:page showheader="true" sidebar="true" name="AMP" &...
0
votes
1answer
39 views

How to redirect to another page in controller

I have developed one visualforce page and controller for account object and checking account.type is empty or not. If account.type is empty then page should be redirect to other page, this should be ...
0
votes
1answer
25 views

How to show custom message when reloading the page

I have a custom VF page. When the page is refreshed, i need to display custom message in page "There is no record to save". when i am clicking save button message will be displaying. But i need ...
2
votes
1answer
23 views

how to abort upload file when filesize is too large

I have a apex:inputFile tag to upload a file I gave it an id to throw an error if the filesize exceeds 500k. The error is thrown but still I can see in my left corner of my chrome browser an attempt ...
0
votes
1answer
30 views

VF page inside a lightning component - Issue with Visualforce Remoting: Javascript proxies were not generated for controller

I have embed existing legacy VF page inside a lightning component. In this page I am calling a remote method onload event for window. Here we are getting following error: "Visualforce Remoting: ...
3
votes
1answer
127 views

How do I produce a “New” record button to look like a standard “New” button?

Basically I want to create an input area for a new record. I'm trying to get it styled like the standard "New" Button. I have tried doing it via Visualforce but it looks like a completely separate ...
3
votes
1answer
29 views

Time dependent workflow email alert - dropping fields

I have a visualforce email template. When I send it via the 'send test and verify merge fields' button it populates correctly with all fields. When I send it via an immediate workflow action - it ...
0
votes
2answers
33 views

Form In Arabic Language With Picklist Values In Arabic As well

Hope all of you are doing good. I want to create a visualforce page (form) which will take input and submit in database but this should be in Arabic. Everything inside form should be in Arabic ...
0
votes
1answer
19 views

Query - Why standardsetcontroller page is not visible in Lightning Page Tabs?

I have created one standardsetcontroller VF page to show list of record and this page should be open in lightning tab. Is it possible?
4
votes
0answers
38 views

Visualforce page not displaying correct Devnagiri words when it render as pdf

I am using Arial Unicode MS font in the visual force page. I need to render it as pdf. The HTML contains Devanagari words. HTML is displayed properly but the words are broken in the generated pdf. e.g ...
0
votes
0answers
18 views

Closing Tab in Console

I have opened a primary tab in Service console as follows : sforce.console.openPrimaryTab(null,'/apex/VFPageName?pid='+''+'&action=0&sf1=0', true,'MyTab,', testCloseTab , ''); function ...
1
vote
1answer
24 views

Displaying related cases Email data on visualforce Page for Big Objects Data

First of all i am very new in salesforce and not have anything to do with programming however i have been trying to finish my first project by getting help online. I have created a BIG OBJECT "...
1
vote
1answer
34 views

Can't access related record in test

I have a visualforce page which is displaying a list of opportunities. The page is working as expected - no problems. The problem is that when testing I can't access the account which is ...
0
votes
1answer
27 views

need help for passing the value from vf page to controller through apex:inputtext

want to pass the value from Vf page to the controller and perform the search action according to the value. but my 'searchstring' is always coming null. according to my requirement whenever I select ...
0
votes
1answer
19 views

How to display a scrolling banner with alert on a Salesforce record page

I have several questions. How do I post below VisualForce message to be displayed to the Quote record page so when user clicks on the page, they will view this. Your help is greatly appreciated. How ...
1
vote
2answers
44 views

Get type of record from standard controller without accessing record?

I've got a component which is used on multiple object types in their visualforce pages. I have a controller which provides some data, and another to add some relevant fields. The controller which ...
0
votes
1answer
20 views

Attachment Image content not able to display in the visual force which is converting into word document

I have a requirement to display attachment image in the word document, word document is generating from visual force page. When i have created a visual force page with tag "apex:image url="/servlet/...
0
votes
1answer
19 views

How to get the likes and dislikes of Feed Comment

I would like to know how to get the disLikes of the FeedComment. This one helped me to resolved getting of "likes" but not dislikes. https://developer.salesforce.com/forums/?id=906F0000000BPzIIAW
1
vote
1answer
29 views

search functionality in vf page

I want to implement the search functionality for the different blocks, my requirement is if I select the account then only its related list should be displayed its working fine for me, now the second ...
0
votes
1answer
27 views

VF Load variable from controller

I have custom controller and I pass data from VF to controller and it works. However, when I try to use this variable in controller at VF, I cannot. Why is this happening? VF Page <apex:form> ...
0
votes
1answer
29 views

Division two inputs with JavaScript and display in another Input box [closed]

In my code am showing input value(discount) based on another input value using onkeyup function. Once input value is populated in input field(Discount) I want to divide that value by another input ...
0
votes
1answer
23 views

Unable to wrap a long word in table when visualforce page is rendered as PDF

I have seen lot of questions which are related to my question. Is there any solution found. I have 6 columns in my table. If the value of the cell in any one of the columns is long and exceeds the ...
0
votes
2answers
29 views

SOQL query to identify Account names with out any number

I require to grab all account names which does not contain any number and display in the report. I am trying to query it using LIKE, but it is not working. My query - [select name from account where ...
1
vote
0answers
27 views

Adding a sibling record via Visualforce in Lightning

Scenario Custom object Basket__c is the Master of two Detail custom objects: Fruit__c and Vegetable__c. Visualforce page vfAddVegetableFromFruitPage is embedded via standard Page Layout ...
0
votes
1answer
24 views

Dynamic Rendering of Div based on Apex Controller Value

I would like to reRender a Div based on some logic. Initially the div will be set as display:none as per the logic (Checking whether the variable is null or not). But after passing value to ...
0
votes
1answer
22 views

How to Dynamically update input field value?

When I enter mobile number in mobile field how to auto update in Phone field same Mobile number without submitting any button in page using Script/jquery Here Mobile is Parent(Org__c Object) field. ...
0
votes
2answers
24 views

How to use Labels in static resource

I am using static resource, file default.js, where all javascript magic for visualforce page happens. But, I come to the problem, when i want to use custom labels, there is an error $Label is not ...
0
votes
0answers
13 views

sforce.console fails when called from standard button override

I use this code to closeTab from Visualforce in Lightning Experience: function closeFocusedTab() { logToBrowserConsole('Executing closeFocusedTab function'); sforce.console....
0
votes
1answer
23 views

Insufficient access : this session is not valid for use with the API from button click when calling VF Page

I am getting below error despite the fact the user has API enabled permission checked in his profile. Its working fine for system Admin but not for the user. Insufficient access : this session is ...
-1
votes
1answer
28 views

Using Merge-fields With force.com site to relate a form to a record [closed]

Project Build a form off salesforce that can be sent to clients to collect information. A user will Send an email off the account record containing a link to the form. The form will allow clients to ...
0
votes
2answers
79 views

How to Redirect same page After clicking save button?

I have created visual force page for updating records from the page. . in my code Owner__c is Parent, Vehicle__c is Child. once i enter value owner object discount__c field , i need to update same ...
2
votes
0answers
128 views

How to close dialog box in lightning experience using javascript?

One of SObject Lightning pages contains an Action Button which opens a custom Visualforce page. I used javascript to open and close the dialog box. It works fine in classic but in lightning it won't ...
0
votes
1answer
29 views

How to open new browser window with tab (Not in same window tab)

I am trying to open new browser window to open with tab. currently it's display like this, I want to display like this, VF code: <apex:page > <script type="text/javascript"> ...
1
vote
1answer
17 views

Cannot resize width of Text Area on click and drag in LEX

I am using visualforce page with inputfield, I have field segment which is of type 'long text', that corner button on down right corner of input field(refer above image), we can click and drag both ...
0
votes
0answers
24 views

Volunteers for Salesforce Visualforce page Field Set not usable in Community

The Volunteers for Salesforce visualforce page VolunteersReportHours has been exposed to a community using a web tab. However, I can't seem to make the field set VolunteersReportHoursFS work. The ...
0
votes
1answer
12 views

Hierarchy getInstance() method in VF Page

Is it possible to use Hierachy custom setting getInstance(userId) method in VF Page? I am trying to use below syntax but it is giving an error (Syntax error) {!$Setup.customSetting__c.getValues(...
0
votes
1answer
19 views

<apex:inputtext> is distorting on VF page during zoom-in / out of screen

I have used for search a string and when I zoom in or zoom out the screen text box move horizontally on the page also if I Zoom-in the screen text box overlaps the text , is there any way I can keep ...
0
votes
1answer
18 views

Populate records based on the visibility from Hierarchy

When user clicks VF button it's just showing all records, i want to only show the records that are visible to the user from role hierarchy, is it possible? VF page: <apex:pageBlock > ...
1
vote
2answers
88 views

Building a Salesforce Form using Sites that is Time-bombed

Project Build a form off salesforce that can be sent to clients to collect information. Sent by email through salesforce as a button available to sales users off the account record Requirements ...
0
votes
0answers
23 views

Need help getting records from a custom object [duplicate]

looking for some help with this. I have a custom object named Annual_Sales_Targets__c with a master detail relationship to Contracts. When a contract is activated, a workflow will kick off and send ...
0
votes
2answers
46 views

Visualforce page to create a new Opp Contact Role

Is it possible to create a custom Visualforce page for adding a new Opportunity Contact Role using standard controllers (Opportunity controller in this case)? The reason I'm asking is that I'd like to ...
-1
votes
0answers
21 views

How to rerender apex inputTextarea on clicking command button

I want to rerender inputTextarea whenever I click on a command button. Below is my code. <apex:actionFunction name="submit" action="{!save}" reRender="form"/> <apex:pageblockSectionItem> ...
1
vote
1answer
20 views

Can't convert WSDL into Apex Class

I'm trying to convert an Apex from a WSDL file, but I'm struggling with it. Since I'm not an experienced developer, the solution may be very simple and I hope anyone can help me. When I try to ...
-3
votes
1answer
46 views

IF condition “ Error: Syntax error. Missing '}' ”

Hi please check this coding and let me know what mistake I did {!IF(Customer__c.Product_Category__c == 'TimeShare', 'Nights',IF(Customer__c.Product_Category__c == 'VTS', 'Nights',IF(Customer__c....
0
votes
1answer
30 views

Call Apex Method in <apex:repeat> to process value

I have a method getCodeToDescription() in my controller for converting the item.Service.Code values into another format, and I want to pass these item.Service.Code values into that function with every ...
0
votes
1answer
29 views

How to add download functionality for related Files of a particular object record on custom VF Site page?

On Salesforce standard page for a particular record, all related Notes, Attachments and Files are shown under "Notes & Attachments section". I have a similar use case where, where on a VF site ...
0
votes
1answer
30 views

Using Conditional Rendering with Visualforce in a PDF

I have a requirment to create a custom document where the font colors change depending on the value of the field. My first thought was Conga but working with the if statement is Word is a pain. I ...
3
votes
1answer
54 views

Not able to call a variable from constructor

I am using a visualforce email template which calls a visualforce component and that component calls the controller class. I am sending an Id from the Email Template to the component and trying to ...
0
votes
0answers
19 views

Lightning Experience - detail page redirect

I am migrating a VF page to LEX and the page should work in both classic and LEX. Please not that this is not Lightning Component. The page controller has a redirect as below. return new ...
2
votes
1answer
25 views

Visualforce Re rendering issue

I have the following VF Page and Controller. The VF Page will have a dropdown of territories, and when that dropdown has a value selected, then I would like to render the PageBlockSections to show ...