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.

2
votes
0answers
836 views

How to Show Lightning Modal pop up in custom list view button

I need to display a lightning modal pop up in list view of custom object, we tried by creating the List button in the object and VF page which calls Lightning modal pop up but the problem over here ...
0
votes
0answers
12 views

Error when adding field to custom lead convert page

I am getting this error now that I added Lead Status Reason to my custom lead convert page: "The dependent picklist 'Lead Status Reason' requires its controlling field 'Lead Status' to be present on ...
0
votes
1answer
10 views

Export Event standard Classic button component for Lightning not working

I'm working with a quick action that retrieves Event record information and send an email with an .ics related file as attachment. This is my vfp for .ics file: <apex:page standardController="...
0
votes
1answer
10 views

Custom Visualforce Quick Actions not Visible in Salesforce1 but visible in Desktop

Made a visualforce page and created a Quick Action for it - added it to the Page layout inside Salesforce Mobile and Lightning Experience Actions. Yes I can see it and use it normally in Desktop - ...
0
votes
1answer
336 views

visualforce invoice page that refers to opportunity's account's contacts

In an invoice that is a visualforce page which is launched from a button on an opportunity layout, I would like to have this visualforce page refer to the account's contact. I know I can refer to an ...
1
vote
1answer
13 views

Unable to append account details from URL

I'm new to vf page I have a requirement to assign a vf page for a specific record type. I'm able to do by through a vf page. Now my problem is once I select the record type from vf page. I'm not able ...
0
votes
1answer
339 views

Cross object look up between Case and Account using a field value with Force.com

I'm an Apex beginner. I have a publically visible Force.com site/page that references an Apex class/controller. The page functions as a web form so customers can submit/create a case. Because the ...
0
votes
1answer
9 views

Communities Enabled Breaks Our Site in “Force.com Sites”

Does anyone know why a Working Sites (VF) Solution using Guest Access would break when Communities is Enabled? Basically our home page is returning us a generic Error: "Authorization Required You ...
1
vote
1answer
345 views

Dependent picklist in 2 different objects in a master-detail relationship

I have two objects in contains picklist values priority (low,medium,high) and in the second object priority2 (mar,apr,may) values, now the thing is when ever I changed the picklist values the ...
0
votes
1answer
358 views

How to call static resource image in another static resource css file?

How to call static resource image in another static resource css file?.i save one image in static resource as a name flowerimage.then that flower image calling from css as a url($Resource.flowerimage, ...
0
votes
1answer
339 views

selectedTab attribute in tabpanel is not working

I have 4 VF tabs in my VF page,by clicking on one button in one related list I am redirecting to my VF page including parameters (two ids and tab as salesTab),and getting tab value using TabtoShow = ...
0
votes
1answer
338 views

I am getting error when i was open my visualforce page in safari , Ipad ,Iphone

My lightning component is open through a visualforce page. It work fine in Chrome ,Firefox and IE web browser. But when we open this visulaforce page in mobile or in safari browser it give error ...
1
vote
1answer
350 views

Visualforce RenderedAs=“pdf” is not working as expected

I have the following code :- <apex:page controller="ReportsController" showHeader="false" sidebar="false" title="Valve Sizing Data" name="Sizing Data" applyHtmlTag="false" renderAs="pdf"> The ...
0
votes
2answers
341 views

Disabling picklist value

I have two picklists A & B. A contains -1,2,3 B contains - 4,5,6 If I select " 1 in A " "5 should be disable in B" through apex. VF Page <apex:page Controller="sample"> <script type=...
0
votes
1answer
346 views

Show alert message in jquery

I want show a alert message when list size is greater than zero. I received like this error. This is my controller: public class OpportunityVFPageExtension { public Opportunity getOpportunity {...
1
vote
1answer
29 views

New custom field missing in standard controller?

This should be a simple change. I am modifying code from a previous developer so if there are any suggestions they are very welcome. This is a simple button to call a VF page that will produce a pdf ...
0
votes
0answers
10 views

Custom Visualforce Action with Redirect to External Site not Opening in Chrome, Only IE!

In a bit of a pickle right now. In Classic, one of our developers made a Visualforce detail button on the Contact object. The VF page referenced is merely a redirect to an external site, but its ...
0
votes
3answers
343 views

how to prevent creation of duplicate account or contact on custom lead conversion page

I have created a custom lead conversion page, where Duplication Rule for Preventing Duplicate Account or Contact does not work. How can I hard code the logic of prevention of Duplicate account/contact ...
1
vote
2answers
352 views

Connection Salesforce with Amazon Connect Refused to display 'https://myInstance.awsapps.com/connect/ccp'

I have a problem. I'm doing the integration of Salesforce With Amazon Connect and I have an error in the console Refused to display 'https://myInstance.awsapps.com/connect/ccp' in a frame because ...
0
votes
1answer
345 views

required=“true” throws validation error even multiselect picklist has values in Visualforce page

I have used following code in my VF <apex:pageBlockSectionItem > <apex:outputLabel value="!$ObjectType.C_FormObject__c.fields.C_Item_SL_JapaneseVisaApply__c.label}" /> <apex:...
0
votes
3answers
345 views

VF page with Edit / Del in page layout not working correctly

I have added an vf page in layout which contains Edit/Delete links. <apex:column HeaderValue="Action"> <apex:commandLink value="Edit" action="{!editAccountContactRole}...
0
votes
1answer
15 views

Apex:inputfile customize

Im trying to display the uploaded image name for the apex:inputfile. I think i need to modify my controller to add the display action,but dont know how to do it,any ideas? <apex:page > <...
3
votes
2answers
5k views

How to delete document in content version?

@RemoteAction public static void DeletePriorties(string Rid) { ContentVersion sList =[Select id,Title,FileType,GeneratedDate__c,FilelinkedCode__c,ContentUrl,createdby.name ...
3
votes
1answer
352 views

How to access “Submit” button via Publisher SDK with Lightning Component in Visualforce using Lightning Out

I'm trying to follow this Trailhead lesson: https://developer.salesforce.com/trailhead/en/visualforce_mobile_salesforce1/visualforce_mobile_salesforce1_actions_global In this, we can use a ...
2
votes
2answers
13k views

How to format date to 'yyyy-MM-dd' using Apex

I'm building dynamic SOQL query for the search page I have the following code: VFP: <apex:column headerValue="Invoice Date"> <apex:outputText value="{0,date,MMMM' 'dd', 'yyyy}" label="...
0
votes
2answers
519 views

Image stored in a document not visible on public sites

An image is stored in documents folder which has been provided access to a public group which includes the uploading person and site's guest user. Externally available checkbox is also checked. When ...
0
votes
0answers
10 views

Rendered causing button to not work

I have the below code which is rendered when the variable Flag is set to true. In the constructor of my class, I set the flag to true by default and only change it to false in the constructor if a ...
0
votes
0answers
14 views

Redirect to custom lead convert page versus the standard

I have a custom button to remove a lead from workflow in order to be converted. This button then redirects to the standard lead convert page. I have created a custom convert page and I replaced the ...
0
votes
0answers
13 views

How to access multiple list on visual force page as like single table? [on hold]

My scenarios is , i have three list and this list is all different types. I want to access this three lists on Visual force page in salesforce as look like single table. Please give me solution of ...
0
votes
0answers
14 views

Visualforce pages vs Community pages [on hold]

I'm trying to understand how Visualforce pages and Community pages are being used by customers. We'd like to use Salesforce to create public facing sites where we can dictate the look and feel as ...
-1
votes
1answer
32 views

Using HTML skills in development [on hold]

I have knowledge of HTML / CSS and some basics of JavaScript, where and how can I use this knowledge in developing on the Salesforce platform? I know VisualForce and Lightnin Web Components use HTML. ...
0
votes
3answers
59 views

If/else statement in Visualforce

I am new to Visualforce/Apex and I am trying to construct an if else statement to render two different views dependent on alias (one view for a certain alias and another view for everyone else). I am ...
-1
votes
0answers
9 views

How to Integrate twitter tweets in salesforce account object using visualforce [on hold]

Hi Guys i have a requirement to integrate twitter account tweets into my salesforce object like i will be creating one vf page and a button in that so once i click the button then i should be able to ...
0
votes
1answer
355 views

Dynamic Picklist values based on RecordType selection in VisualForce page

I have a requirement to show dynamic picklist values based on recordType. I did my research but looks like nothing native from Apex can handle this. I went the route of calling Describelayout method ...
0
votes
0answers
16 views

How to create a workaround of a self- reference building a filter with an apex form wrap in a visual force page

I have got a lot of research and recherche done as this simple where clause doesn't work because of it self-reference. I want to display all leads and opportunities who have the same "datefield x" as ...
0
votes
1answer
23 views

Display * for password in <apex:inputSecret> in VF page

I am using following code to display the password on the VF page: <apex:pageBlockSectionItem helpText="Docusign Password"> <apex:outputLabel value="Password" /> ...
0
votes
2answers
354 views

pageReference not redirecting to Detail page

I have a VF page inside iFrame. In that VF page, the commandlink is there which should redirect to the detail page of an object. I have written one method as an action to the commandlink in a ...
0
votes
3answers
344 views

Toggle particular pageblocksection for shwoing detail on CheckBox

I have a problem like when i select the check box it will rendered the particular part and after i deselect it is not rendering that part which i want to hide. <apex:page sidebar="false" ...
0
votes
3answers
346 views

Visualforce Email Template Not Returning Child Records In Table

Have a visualforce email template (that I had a lot of help with) that works in the "Send Test And Verify Fields" using a record ID# to test, but when the workflow calls the template for an email ...
0
votes
1answer
22 views

How to concatenate two variables in visualforce

Getting errors when I try to concatenate two variables value in apex:outputText tag. For example, if I have two variables Start_Date__c and End_Date__c, I want to display in page as below ...
3
votes
1answer
693 views

Canvas VF page can not find Connected app

I have a simple VF page to render canvas app. While rendering I am getting error - ops, there was an error rendering Force.com Canvas application [MyAppName]. Force.com Canvas can not locate an ...
0
votes
1answer
12 views

Creating and downloading a text file on a Visualforce page

I've built a visualforce page that has a button that creates and stores a text file as an attachment on a custom object. I'd like for this text file to be available as a download link on the ...
0
votes
0answers
21 views

Dynamic rerendering of output panel

Requirement: A visualpage will have a button, which can be clicked 10 times, each time a new section is created. Each section has a static section and a dynamic section in which Case fields needs to ...
1
vote
1answer
349 views

Rerender does not work with Modal

I have a VF page which gets the folder name from the user and creates a folder in one library. The page has a button & the folders existing the library is shown using a repeater. when the button ...
0
votes
2answers
30 views

custom setting not displying correct picklist values based on the condtion

i have a custom setting called product and under that i created two fields called and other is string field BD__c. i want to display picklist value based on string matching record. my custom setting ...
0
votes
2answers
38 views

How to Redirect to /secur/logout.jsp from @Invocable method

I have a requirement where I want to logout of salesforce when certain statement inside an @invocable method is executed. For this purpose, I am trying to use PageReference to redirect to "/secur/...
1
vote
1answer
365 views

Live Agent: Pass parameters entered in Pre chat form to a VF Page on Accepting the chat Request

I have a pre chat form and the app is configured to open a VF page when the chat request is accepted. I want to pass parameters entered in the pre chat form to this VF page. Thanks for your help in ...
0
votes
1answer
25 views

apex:inputField not getting created when created via javascript

Standard controller is already applied as case, just not mentioned here. VF Page : <apex:form> <div id="testAIF"> </div> </apex:form> From ...
0
votes
0answers
10 views

Standard multiple picklist field Not Showing properly on vf page

On my VF page, I called standard multiple picklist fields like this way <td><apex:inputfield value="{!order.Coat_TIC_PKT__c}" styleClass="testInput"/></td> it's showing properly on ...