Questions tagged [visualforce-component]

Visualforce components encapsulate a common design pattern and can be reused several times in one or more Visualforce pages. Salesforce provides a library of standard, pre-built components, such as <apex:relatedList> and <apex:dataTable>, that can be used to develop Visualforce pages. In addition, you can build your own custom components to augment this library.

274 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
59 views

Using custom fonts in visualforce email templates

I am creating visualforce email template and need to use custom fonts (mostly Neutraface Display, SalesforceSans, TrailheadBold2). Most of the search results i get are about using them in visualforce ...
1
vote
0answers
47 views

Send Approval Comments in Visualforce Email

I have a custom Visualforce email template with a VF component inside it that displays the most recent Comment from an approval process. It is built with the same approach shown in this blog post by ...
1
vote
0answers
70 views

Create Multiple PDFS from a Visualforce page

I have a VF page that is designed to export as a PDF. It looks at a parent record: Division__c and uses a component to loop through and create a PDF of all the child records: Region__c. Currently, ...
1
vote
1answer
24 views

Track click on a Visualforce component that plays a video

I am trying to figure out how to track (send to Google Analytics) when a user clicks to play a video that is referenced in a Visualforce page (below). <apex:page showHeader="false" ...
1
vote
0answers
20 views

Populate lookup field by clicking search result

Im creating custom search result from custom object and facing several problems, I want to populate lookup field based by clicking value that is retrieved by the search function, so there are 2 points ...
1
vote
1answer
460 views

How to do inline editing in pageblock table values

I am passing a list to the pageblock table and my table looks like below i want to edit the table values. I tried the below code. This is my VF Page code <apex:pageBlockSection id="section2" ...
1
vote
0answers
79 views

How to navigate from one visualforce component to another visualforce component

I have 3 tabs in which 3 different components are placed. How can I navigate from a button that is present in one component to another component? Visualforce Page <apex:page controller="...
1
vote
0answers
58 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" &...
1
vote
0answers
128 views

Using addError on object in trigger for custom validation messages is taking users to random Picklist Value Sets page in Lightning?

I have a page for a custom object that contains a link: <apex:commandLink styleClass="actionLink" onclick="return confirm('{!$Label.PCE_Are_You_Sure}');" action="{!URLFOR($Action.PCE_Step__c....
1
vote
0answers
45 views

PDF not generated in printable view

Below is my controller public class MyController { public Letter__C letter{get;set;} public String isPDF { get; set; } public Boolean bolPrintableView {get;set;} public MyController(){ ...
1
vote
1answer
64 views

Activity Actions in Gmail for lightning

When i open a Contact record in salesforce LTX it give me option of New Task, Log a Call, New Event under Activity Tab as shown below. But in Lightning for Gmail when i open contact and goes to ...
1
vote
1answer
61 views

Content cannot be displayed: pba__Bedrooms_pb__c does not belong to SObject type pba__Listing__c

I have the following controller and VF page. The code seems to be fine as I don't get any error but when I include the VF page in to an object I get this error: Content cannot be displayed: ...
1
vote
0answers
85 views

Add existing attachment in visualforce Email template via workflow

I have a scenario that when billing is generated in system. Invoice should be send through mail to Person Account Email. I am doing this via workflow. In workflow I have a VF email template which ...
1
vote
0answers
97 views

ActionFunction on Sites (guest login) return unauthorized

We have an external site for our clients, and in that site faq section, when we try to use apex ActionFunction the site return unauthorized page. We have tried everything here: ActionFunction on a ...
1
vote
0answers
47 views

Chatter to Apex: Getting Attachment

I am using rest api (ConnectApi namespace output classes) to get the chatter feed details of a particular group in my org and using Javascript remoting to display the elements in a custom vf page. So ...
1
vote
0answers
69 views

Visualforce tab panel are not shown how i add it to all page, header will be same content will change

Visualforce tab panel are not shown how I add it to all page, header will be same content will change Let's start from the first step i create a Visualforce tab on this tab I add one VF page which ...
1
vote
0answers
83 views

Async loading of Visualforce Custom Components

I have a VF page that uses custom components. We're trying to increase page load speed and would like to render these components asynchronously based on events (click for example) using VF remoting ...
1
vote
0answers
276 views

System.EmailTemplateRenderException: Too many SOQL queries: 101 Exception

Facing 'System.EmailTemplateRenderException: Too many SOQL queries: 101' exception while using visual-force email template with custom controllers. Api - Messaging.SingleEmailMessage templateInstance ...
1
vote
0answers
90 views

Visualforce component field value bind issue

I have following class /** * extension class for handling VF page actions */ global with sharing class SQX_Extension_Random_object extends SQX_Controller_Sign_Off { private ...
1
vote
0answers
459 views

Updating attributes in component controller

I was looking for a way to pass the values from component to controller and I stumbled up the article Bob Buzzard wrote it here I have pretty much copied his code except that I expanded his code to ...
1
vote
0answers
622 views

Render blob or binary on VF page

I am making a callout from custom button on a record to the document management system(client) which has attachments.When I request from custom button I do two things: 1.Requesting by doing callout ...
1
vote
2answers
193 views

Alignment issue after using actionRegion

I used the below code to re render the pageBlockSection whenever I choose the relevant picklist. I achieved that thing but what i'm facing is alignment issue. This is the VF Code i'm using it, <...
1
vote
1answer
1k views

Jquery Datatable pagination checkbox

EDIT: I just wanted to expand little bit more give you guys more information as possible so my question is more towards the jquery datatable so when you go to different pages my checkbox is retain ...
1
vote
0answers
110 views

https://anysalesforceOrgurl/apexpages/apexcomponents.apexp

When you go to /apexpages/apexcomponents.apexp from your org instance, it redirects you to a page which shows all visualforce components of your org with component details and usage examples including ...
1
vote
0answers
348 views

Angular JS + VF component binding

I have the following scenario: VF page: <div ng-controller="listingGeneratorCtrl"> <div> <div id="rightColumn"> <div ng-repeat="section ...
1
vote
1answer
2k views

How can I get lookup field value from VF page?

After I created a case and choose lookup field value(AccountId), I wanna get the value in my controller, but the field always return null. <apex:page standardController="Case" tabStyle="Case" ...
1
vote
1answer
213 views

Storing 3rd party OAuth2 tokens in Salesforce

I am developing an app and this app is authenticated using OAuth2. Where do you I store the OAuth access and refresh tokens in Salesforce? Is Custom Setting the best approach ? Also, how do i store ...
1
vote
0answers
111 views

Salesforce Lightning Design System minified css file inconsistent between managed and unmanaged packages

I am using the minified 2.1.3 version of the SLDS css file in a package I am working on. I am noticing inconsistencies, mainly with the calc() function, in the css file between my dev org and when I ...
1
vote
0answers
25 views

Reloading values on apex component

needs some help. Am a beginner in learning Apex development in SalesForce and am stuck on following: There are two components on one vf page: <apex:page> <apex:composition> ...
1
vote
1answer
989 views

Assigning values to the inputfield in Modal PopUp

I have a Bootstrap Modal popUp containing an input field, in my visualforce page. I need to prepopulate the default value on that readonly input Textbox whenever user clicks the Deploy Product button. ...
1
vote
1answer
563 views

Input field in Visualforce Component

I am attempting to update a field of an object from a visualforce component. That visualforce component is inside an apex:repeat tag. Here is the page that references the visualforce component (...
1
vote
0answers
20 views

Inclusion of license notice in managed package hosted on AppExchange

We have a managed package hosted on AppExchange. We would like to include Mutli-select picklist component provided here (https://github.com/metadaddy/Visualforce-Multiselect-Picklist) in our package. ...
1
vote
1answer
42 views

Add component validation to avoid 'SObject row was retrieved via SOQL without querying the requested field' for grandchild

I want to create a component that can accept an SObject without requiring it to have all of the fields displayed on the component. However, when trying to access a grandchild, I am not able to render ...
1
vote
1answer
24 views

Error: Unknown property 'PAModel .saveAllRelated'

I have the following piece of code in a component <apex:attribute name="Model" description="" type="PAModel" required="true" /> <div> <input type="button" style="display: block; float:...
1
vote
0answers
373 views

Dynamically assign attribute value to custom vf component

I have a custom vf component that takes in account ID as a parameter. The vf component takes in the ID of the account and displays all the contacts under it. I have a pageblocktable that iterates over ...
1
vote
1answer
117 views

Apex includescript is disabling tabs in Visualforce

I have this java script. The purpose is to open a NEW tab on any outputlink field. The script works but it disables my other tabs. When I remove my Includescript the tabs work but any outputfield ...
1
vote
0answers
164 views

Apex:selectList dependent on ApexInputfied

`First, I am not a developer by any means so please be kind. :) I have created a custom Visualforce Log a Call page which makes use of URL Param button to auto populate a picklist field (Vertical__c) ...
1
vote
0answers
248 views

Problem with reRendering a component in vfp

I am doing a Add/Delete row functionality in vfp. Within this add/delete row pageblock am calling a component(which is having textbox). When I click on add row button it is rerendering the component ...
1
vote
0answers
42 views

how to pull a managed VisualForce component onto my Visual Force Page

I am replacing a managed custom VisualForce page that is step 3 of a wizard. On the custom VisualForce page I created to replace the original, I am able to pull in the wizard component, so, the steps ...
1
vote
0answers
1k views

How to call actionStatus in javascript onchange event?

I want to show loading image on change of a selectlist value. Already 3 javascript functions is being called during onchange event, hence actionSupport is not working when onchange event is used. I ...
1
vote
1answer
251 views

Lookup field is not working properly

I have a problem to create lookup field for custom object. Lookup icon is not appeared in my visualforce page. This is my coding. Controller: public class StudentLookup{ public List<...
1
vote
0answers
30 views

Is it possible to use Page.Parameters to set the retURL in a VF Component?

I have been asked to create visual flows for Service Console users for complex Case types. I'm testing with an existing flow, using a VF Component to create a button that launches the flow. Clicking ...
1
vote
1answer
102 views

Put apex:pageBlockSectionItem into apex:component

I have a few apex:pageBlockSectionItem <apex:pageBlockSectionItem helpText="{!$ObjectType.Opportunity.fields.TextField__c.InlineHelpText}" dataStyleClass="myCSS" labelStyleClass="myCSS" ...
1
vote
0answers
968 views

How to pass value One Component to another Component in Salesforce?

I have two Visualforce components. One is CompleteArticleSearch, Where a Search Text Box and The second is CompleteArticleResultShow, where searched article will display. How can I pass search ...
1
vote
0answers
158 views

Eclipse IDE: Cannot save custom component with a select list; works fine with Dev Console

Using Eclipse and the force.com IDE, I cannot save the following custom component to the server. Eclipse gives the code a red box at the very top with the message of Save error: null <apex:...
1
vote
1answer
741 views

How to pass values between two components

In a VF page, I have two i.e. A and B.In first component,there is a search box. Second component will display data type in first component search box. So How can I pass data between these two ...
1
vote
1answer
164 views

Get Type of Apex Components

I need to dynamically create Apex Components. I know that there is method Type.newInstance that can do it, but one problem seems like I can't get Type variable from Apex component. For example: Type ...
1
vote
0answers
98 views

how to insert text without any spacing wrt borders in rich text box field

Have used a rich text box and no margins are required, have tried style border, margin, display everything but still not working. Have to remove only the margin from each end.
1
vote
0answers
39 views

Putting a form in a component, problems with submitting form

I have a component which I am trying to have a form submit. The form is handled by a managed controller in a managed package (which is a third party's). The component does not otherwise have code ...
1
vote
0answers
637 views

Open new console tab from within subpage

I have a visualforce page running within the Account page for which I want different behavior in and out of console. When I'm in console, I want to be able to click on a link within the sub-page and ...