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.

0
votes
0answers
50 views

How to create a custom VF page with dynamically generated HTML code?

I'm using a custom rich text field. The rich text field is created in a standard object. In the rich text field there is a dynamically generated HTML code via apex. Here is what the rich text field ...
1
vote
0answers
35 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
2answers
103 views

How to create unit test for Apex Controller that responds to user input?

I have a process that has been built that presents a visualforce page to the user, they first select a price book, and a section on page is refreshed. They are presented with a list of products from ...
1
vote
1answer
21 views

Display both parent apex:detail component and child apex:detail on single visualforce page

We would like to have a single visualforce page displays both the parent detail and child detail together. The idea here is to prevent the user from having to traverse from the child to the parent to ...
0
votes
1answer
25 views

How to display error messages using jQuery? [closed]

$(document).ready(function(){ $('.f').Click(function(){ alert('Happy New Year'); var status1 = $('.b').val(); if(status1=='open') { alert(...
0
votes
0answers
18 views

How to add a new tab to a Salesforce app page on package install

I am currently building a Salesforce app wanted to know if it is possible to add a new Visualforce page tab to the Marketing custom app when the package is installed. Something like the below image,
0
votes
0answers
22 views

Show Visual force page in pop-up on click of button which is in another visual force page using jQuery dialog

I want one button like this on case detail page: I have added this button using visual force page. I want to open another visual force page in a pop-up on click of this button. I don't want to use "...
3
votes
1answer
44 views

Visualforce rendered as PDF not working in Production but works in Sandbox (using Lightning in both)

I'm stumped by a very strange issue. We have Lightning enabled in Production and sandboxes. I have an Action (on Opportunity object) which points to a Visualforce page. The Visualforce page is ...
0
votes
1answer
20 views

Page Refreshing and Resetting Visualforce Parameters

Through a series of events, I have a visualforce component that When a apex:outputLink is clicked calls a component controller method Calls some javascript in the component The javascript calls an ...
3
votes
1answer
54 views

How to clear the filename and value of apex:inputFile

I have and apex:inputFile tag where a user can input a filename to upload on a visualforce page. I have a javascript function which checks and alerts if a filesize is too large. After the Alert the ...
0
votes
0answers
20 views

Field is not writeable: ESR_Assignment__c.Customer_Address1__c at line 95 column 18 [duplicate]

when I add formula field then showing like error /////////control class/////////// public with sharing class importDataFromCSVController { public Blob csvFileBody {get;set;} public String ...
0
votes
1answer
23 views

onclick Javascript link is not supported in lightning experience

I am just trying to open a popup window by clicking on custom link in my page layout and it seems working in salesforce classic but not in Lightning view. What i have found is few people suggested to ...
0
votes
1answer
21 views

I need to display In single table,has a header name same thing like a map of key and each key has list of values on visual force page [closed]

Key 1 Key2 key3 value1 Value1 Value1 value2 Valu2 value2 value3 Value3 Value3 valu4 value5 Like i have to show on visual force page
0
votes
0answers
13 views

Jquery fullcalender last slot is not setting the heigh and width properly

I am using jquey fullcalendar with salesforce everything looks to be correct if Keep maxTime < 24 hours but when i chane maxTime to 24 hours than the last slot for half an hour is breaking. In ...
0
votes
2answers
29 views

Visualforce Styling Conditional Rendering Field Alignment

I have conditional rendering set up for a PageBlockSectionItem field and it seems like this field does not align properly with the rest of the fields in this same section - see below. Is it possible ...
0
votes
1answer
18 views

want to create multiple Picklist in lightning and show all sobject in it

I am trying to create a multiple picklist on lightning page but i am not able to fetch sObject in multiple picklist. Here is my code :- Controller class:- global with sharing class AboutController{ ...
0
votes
1answer
24 views

Not able to call Custom Apex Rest API from Visual-force page in java-script

I have a requirement where I need to call my custom written Apex REST api from java-script in visualforce page, But somehow I'm getting that CORS issue which says my request has been blocked due to ...
1
vote
3answers
78 views

Make fields mandatory when status is complete

I have a status field on contact,when status is complete,remarks should get mandatory..I wrote if condition for this in controller,but it is not taking remarks field as mandatory..how to write this? ...
-2
votes
1answer
39 views

How to write test class for contact detail page [closed]

My controller: public class contactdetailpage { public contact con{set;get;} public list<ContactActivities__c> ca1{get;set;} public string conid{set;get;} public ...
5
votes
1answer
47 views

Visualforce apex:param bound to non-existent controller property - no error?

Discovered while debugging another developer's code ... sigh Given a controller defined with a single getter/setter public with sharing class SfseCtrlExample { public String foo {get; set;} ...
0
votes
2answers
47 views

Create a custom button on a custom related list that simply adds other opportunities to that list

I've created a custom lookup field on our opportunity object with and included a custom related list that will show related records that are linked to that 'master' opportunity. How to I add a ...
0
votes
2answers
25 views

Show System error messages in visualforce markup

I wonder, is it possible to show exceptions or any errors, like "Null pointer exception" in visualforce? For now all errors refresh the page and displaying error on the blank page. I want for my ...
0
votes
2answers
48 views

How to make a dynamic picklist field as required in vf?

I am creating a popup which shows some product details along with dynamic contact list.how to make this dynamic picklist as required or through an error when if its not selected or the value is "--...
0
votes
1answer
20 views

Are there any good resources to learn force.com sites? Like blogs, Video tutorials etc? [closed]

I need to learn force.com sites development. There are no trailheads as far as I know. So are there any blogs or video tutorials to help me learn this?
1
vote
2answers
40 views

Redirect back to the VF page

In Classic: There is a New button on the VF page. On click of this button default new record create a page of the custom object gets open. On saving of the record, the page gets redirected to the VF ...
0
votes
1answer
42 views

Custom controller pagination using standard set

I'm stuck on standard set controller pagination for my case study as it requires if statements to create a list query which i can't convert to string here's the codes so far <apex:page controller=...
0
votes
0answers
21 views

VF Radar Chart labels clipped in rect ( SVG )

Radarseries graph is being clipped in VF page with SVG element <apex:form > <apex:includeScript value="{!$Resource.JqueryFile}" /> <style> .vf-surface{ ...
1
vote
1answer
34 views

Not able to access visualforce page of installed managed package in my salesforce org. It is redirecting to login page

I have installed a managed package in my personal salesforce org. On clicking of custom button , as per requirement it must redirect to visualforce page.Instead of redirecting to visualforce page, log ...
0
votes
1answer
33 views

Knowledge__kav visualforce not shown in Article page layouts

I have create a visualforce with KnowledgeArticleVersion as standardController Visualforce page: <apex:page standardController="KnowledgeArticleVersion" extensions="MyController" showHeader="...
0
votes
1answer
27 views

is it possible to store dynamic value in Custom Label like {!…}

I know custom label is used to store static text but would like to store tableau report link with dynamic Contact Id value or name. Issue is when I read it from VFP without controller then it does not ...
0
votes
1answer
32 views

Visualforce Remove/Hide Line Breaks between PageBlockSections

Is it possible to remove the line breaks specifically between PageBlockSections? My Visualforce page is currently set up to render/display fields, however, this is creating an undesired effect of ...
0
votes
0answers
35 views

How to force download of a dynamically generated file in Visualforce

I have a commandLink whose action is set to an Apex function that creates a Document and returns its ID. <apex:commandLink title="" action="{!createFile}" value="" type="hidden"> <button ...
0
votes
0answers
15 views

To get selected tab name from vf page and pass to controller [duplicate]

I need name of the selected tab and pass it to the controller. My code is below: VF page: Summary </li> <li class="slds-...
0
votes
2answers
23 views

Visualforce Conditionally Render 2 Different Fields based on 2 conditions

Calling VF Experts: Is it possible to conditionally render 2 different fields on a Visualforce page based on a value selected in a picklist? I have the first condition working properly but unsure if ...
2
votes
2answers
49 views

Which Salesforce editions support <apex:map> tag?

I know that apex:map tag doesn't work in Developer Edition but I assumed it is working in my client's Group Edition. To my great surprize, apex:map tag isn't available in Group Edition but this is not ...
0
votes
2answers
47 views

How to redirect to Parent Record after Creating Child Record

Thanks David for replying. I am launching a Survey Child Record from a Student Master Record Page. After saving the Survey Child Record I want to be redirected to Student Master Record Page. Below ...
-1
votes
1answer
39 views

Unable to edit VF pages in Eclipse

I am getting below error while editing visual force pages in Eclipse(Neon) - Force.com IDE (eclipse45). org.eclipse.ui.ide.FileStoreEditorInput cannot be cast to org.eclipse.ui.IFileEditorInput
0
votes
1answer
17 views

How I do check filesize of apex:inputfile when used in apex repeat

I have an <apex:inputFile> in an apex repeat. I do a check on the <apex:inputFile> with javascript. This seems only to be working for the first <apex:inputFile>. How do I manage to ...
2
votes
2answers
56 views

Avoid changing Visualforce page URL

The Visualforce page has <apex:commandButton action="{!submit}" value="Submit"/> The submit method returns void. public void submit() Now the page has certain URL parameters, the submit ...
0
votes
2answers
43 views

Alternative for javascript window method for visualforce pages in lightning

With the lightning readiness report there is mention that javascript window method won't perform as supposed to in Lightning. Salesforce documentation suggest sforce.one navigation methods to replace ...
-2
votes
1answer
56 views

Unknown property, please help am getting an error

.bb { border-bottom: solid 2px black; border-top:solid 2px black; } @media print { .noprint {display:none;} } ...
0
votes
1answer
15 views

How to get the updated specific record from list (Visualforce)

Im trying to get only the updated record from my current list.. Im using apex pageblocktable to show the current list, which is the contact field is empty (those data`s are from API response).. and ...
1
vote
1answer
28 views

<apex:slds/> tag vs the Lightning Design System Static Resource for Manage package developement

I am new to manage package development. I want to develop a Visual force page with Lightning styles. I know the two approaches as below: Using <apex:slds> tag. (I will have to change the ...
1
vote
1answer
19 views

Pass the callback value (result) from Visualforce.remoting.Manager.invokeAction to apex:repeat value.

I want to pass the return value of my remote action method to apex controller from javascript. This is my code. Visualforce.remoting.Manager.invokeAction(//get store list for map points ...
0
votes
0answers
15 views

Tab being opened in a new tab as well overwritting the current tab

I am trying to open a tab in the salesforce console when the user clicks on a link but for some reason the link opens a new tab as well as overwriting the current tab with the new page. I am having a ...
0
votes
1answer
24 views

Actionsupport is not calling method in apex controller

I need to display record data in a separate section based on changing a values in picklist.Trying to call a method in apex using actionsupport but it failed to call method. here is my code. VF Page: &...
0
votes
0answers
14 views

Override delete link in lightning Account related list

I am trying to override the delete button of related list of custom object on account page layout. However the override option does not show lightning component that can be used to override. Only VF ...
0
votes
1answer
25 views

How do I code a 'confirm send' button on my VisualForce page?

I have the following commandButton which runs the javascript function 'sendEmails'. This runs an ApexFunction which runs apex code to create and send an email from the controller. I need to add in a '...
1
vote
1answer
29 views

APEX Aggregate Result vs Repeat with Variable

I am trying to sum a value from a list of records. I can achieve this by creating a list in APEX, then represent the list on a Visualforce page without rendering any fields. I have also done this by ...
0
votes
1answer
16 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 ...