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 ...

0
votes
0answers
8 views

Dynamically set apex:inputField required attribute while using CSS to hide/show field

How do I dynamically set the required property on apex:inputField while using CSS to show/hide said field in order to avoid the validation error upon saving a form that has said field as hidden AND ...
1
vote
0answers
10 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
36 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 ...
-1
votes
1answer
13 views

Knowledge Sidebar component in VF page

Is it possible to embed knowledge sidebar component on custom case detail VF page? Do we have any tag to include it?
-2
votes
0answers
26 views

salesforce application [on hold]

I have question I created Salesforce site, which includes visualforce page, which includes lightening application, and the i build my lightening component Salesforce site-> visualforce page ->...
0
votes
1answer
22 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
19 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
21 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
118 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
27 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
27 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?
0
votes
0answers
48 views

Markup the Visualforce table [on hold]

GE. I have a Visualforce page and corresponding controller with my own Custom object. I need to markup this page as follows: "Main table" - parent-child; field name and it value in a center of page, ...
0
votes
0answers
16 views

Is it possible to display attachment pdf in VF page pdf?

I need to create an attachment type picklist field on attachment object(custom not standard which is in lookup with quote) with the values of product attachments and quote attachments and opportunity ...
-1
votes
0answers
14 views

search button to display only particular child records [on hold]

public with sharing class searchInvoiceline { public list <Invoice_Line__c> acc {get;set;} public string searchstring {get;set;} public String Quote { get; set; } private ApexPages....
4
votes
0answers
36 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
17 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 ...
0
votes
0answers
10 views

VF Page on Mobile - click thru to zoom on image

I have a VF page that displays a static image (stored as attachment). On Click, it will open in new screen. I now want to display same image on mobile using VF page. How can I make the on click ...
1
vote
1answer
20 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
33 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 ...
-1
votes
0answers
38 views

visualforce & its class [closed]

I have one doubt. I created a custom controller class for Accounts related contact. If the contact has its primary field true then show its FirstName,LastName,Email & Phone on Visualforce page, ...
0
votes
1answer
26 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
37 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 ...
-2
votes
0answers
14 views

Should i push the new methods i created in my controller to extension because there are more methods in the controller [closed]

I have an existing controller in a VF page which has multiple methods my boss says to push the new methods into an extension so that the number of methods in controller are reduced. Is it appropriate?...
0
votes
0answers
17 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
17 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
26 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
26 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
24 views

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

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
22 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
24 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
24 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
20 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
20 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
12 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
0answers
14 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
22 views

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

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
0answers
31 views

Set generated file name doesn't work on visualforce

On a Visualforce page I set a button to download a file generated by the Apex controller. Everything works well except that the name of the file isn't the one I expected. It's always the generic name ...
0
votes
2answers
38 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
61 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
26 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
14 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
22 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
18 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
17 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 > ...
0
votes
0answers
18 views

Pass Case ID to Post-Chat URL

I have a VF Page Pre Chat form that creates a Case and looks up a Contact in our system if they exist. I want to be able to grab and pass the Case ID that is created in a Post-Chat URL for our Third ...
1
vote
2answers
76 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 ...