Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [dynamic-visualforce]

Dynamic Visualforce components offer a way to create Visualforce pages that vary the content or arrangement of the component tree according to a variety of states, such as a user’s permissions or actions, user or organization preferences, the data being displayed, and so on. Rather than using standard markup, dynamic Visualforce components are designed in Apex.

Filter by
Sorted by
Tagged with
2
votes
1answer
154 views

Dynamically determine type of input from controller

I have a custom object with a field named AnswerType that is a Picklist, and has possible values of Picklist, Text or Textarea. Essentially, the client wants to be able to ask the user a question in a ...
1
vote
0answers
34 views

Change conditions in Dynamic Visualforce page

I have a Code in VF where once i select the Account it gives Account details as 2 fields. The fields appear only after i select the Account. I want to show the blank fields by default and populate the ...
0
votes
2answers
901 views

How to make column ID as Dynamic in vf page?

I want to generate dynamic ID in my vf page for columns. Here is my code: <apex:repeat value="{!customerMap}" var="indexKey" > <apex:pageBlockTable value="{!customerMap[indexKey]}" var="...
2
votes
2answers
135 views

Creating VF page by using Salesforce Tooling API . JSON_PARSER_ERROR

I am using Salesforce Tooling API for creating dynamic VF pages . Everything is fine but i am getting 18:23:09:159 USER_DEBUG [239]|DEBUG|[{"message":"Unexpected character ('P' (code 80)): was ...
0
votes
2answers
1k views

IF inside an action=“” - different method based on criteria

I'm struggling with syntax here. This is what I'm trying to do - obviously the syntax is wrong. <apex:actionsupport event="onchange" action="{!IF(x=1, {!save}, {!otherMethod})}" How would I ...
2
votes
3answers
1k views

CKEditor when used to rerender text area to rich text area breaks the binding with the controller

I tried using CKEditor to render the text area as rich text. But when I edit the text present in the editor, it does not sync back to the controller. Here is the code i used to make text area rich ...
0
votes
1answer
619 views

Dynamic Apex Chart -apex:axis maximum calculation

Am Creating a dynamic apex chart .The problem am facing is in calculating the maximum value is considering only 500.00 where in the map has still higher values . Thanks for help in advance. The ...
3
votes
2answers
296 views

Data Driven Visualforce Page

I am designing a custom input picklist form that will be data-driven.Based on picklist value selected next question should show up with the picklist options.Like wise it might end up having 10-15 ...
1
vote
0answers
156 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) ...
0
votes
1answer
539 views

Link to Report on VF Template

Is there a way to add an Link to a particular report onto the visualforce email template. example:<apex:outputLink value="{!LEFT($CurrentPage.URL,FIND('/',$CurrentPage.URL,9))+'/'report.id}">...
0
votes
1answer
588 views

How to get the server name dynamically

I'm using below line of code in the vf component,this is a part of repeat tag. <td class="center"><a href="https://cs14.salesforce.com/{!o.id}/e?retURL=%2F{!o.id}">Edit</a></td&...
2
votes
1answer
91 views

Visualforce | Multi Conditional Block Rendering

I have a beginner's question.. I'm trying to make a VF PageBlOckSection render by the following logic: IF Opportunity.Cancellation__c == TRUE AND Opportunity.Paid_Upfront__c == TRUE than Render 2 ...
1
vote
2answers
436 views

Javascript Actions such as onmouseout and onclick not working for apex:inputtextarea with rich text enabled

While trying to call JavaScript functions on <apex:inputtextarea> with rich text enabled the call is not being made and alerts are not being displayed. <apex:inputTextarea richText="true" id=...
2
votes
1answer
89 views

Dashboards: show list of leads counted in graph

Say I have a graph that looks like this on a dashboard in Salesforce: How can I display, preferably color-coded, the leads counted in it (i.e., the ones talked about in the graph)? Like to the right ...
2
votes
1answer
2k views

How to increase the width and height of the Rich Text area field in Visual force Page?

I know this question has been asked earlier. but did not see proper responses so asking again. <apex:pageBlockSection title="Preview Pane" columns="1"> <apex:inputTextarea richtext="true"...
1
vote
1answer
404 views

Multi select Picklist and Visualforce issues

I am trying to display picklist values from a multi select picklist from a related object. I am using a visualforce page and putting this in the record detail. VF Code: <apex:page showHeader="...
1
vote
1answer
300 views

Outputting spaces with dynamic VisualForce component

I am having trouble getting my dynamic VF Component to space out the buttons for navigation on my page. As you can see in the image below, it correctly outputs spaces between the Previous and Next ...
0
votes
1answer
2k views

How to hide or show (<DIV>) items dynamically in a VF Component?

I have the below VF Page where I am using pagination to only show 7 records at a time: The VF component code in the VF page is: <apex:pageBlock id="navGroup" rendered="true" > <div align="...
1
vote
1answer
323 views

Sending an VF Template Using Apex

I am trying to send an VF Template using the Schedular Apex. when i run the code below is the error message received: FATAL_ERROR System.EmailException: SendEmail failed. First exception on row ...
1
vote
1answer
486 views

Is it possible to line up PanelGrid with PageBlockTable or hard code a pageblocktable

So I have a data entry grid that is a pageBlockTable. I'd like to put instructions below the grid. What control can I use to make the grids line up? This is the data entry section <apex:...
1
vote
3answers
995 views

Mass email the Visualforce email template

We have a limitation using Visualforce email template. VF Email Template can't be used for mass email. I am look for the ways how this can be achieved. I have created a visalforce email ...
1
vote
1answer
2k views

Visualforce Email Template - Related To

I am trying to fetch all the Opportunities associated with the User.Below is the Visualforce Email Template. I am stuck with the line of the code received error: Error: Invalid field ...
2
votes
0answers
681 views

Dynamic Visual Force Binding - getting values to Controller (null)

I am stuck at what I beleived to be a simple implementation using Visual Force Dynamic Bindings. I have the following scenario: A Standard Case has a relationship to a Custom Object (we can call it ...
0
votes
1answer
230 views

want to call Script from Visualforce page [closed]

When i run below code on button click event, it is not working. <apex:page > <apex:form > <apex:includeScript value="{!$Resource.jqueryAvaWidget}"/> <div id="...
0
votes
1answer
1k views

Disable selectList after selection is made

I have a selectList in my VF page which allows the user to select the record type. On change the appropriate fields are shown to the user by re-rendering the PageFields. But as well as re-rendering ...
3
votes
2answers
959 views

Getting a VF component dynamically by name in Apex

I am trying to use Apex to control which component to show inside a <apex:dynamicComponent> but I don't want to hardcode the component names. So my question is, how can I reference the component ...
0
votes
1answer
129 views

how to do a alert message [closed]

How to alert message the events section and resources section so that I can check whether all my events are being loaded into the VF page or not. $(document).ready(function() { $('#...
1
vote
1answer
394 views

How to access User's Profile fields in visualforce page Javascript portion

I want to access a custom field of my administrator profile in a Visualforce page which has a standard controller i.e. "Company__c". I want to access the custom field in javascript portion of that ...
0
votes
1answer
137 views

apex:param not recognized by document.getElementById()

I'm not sure if apex:form is supposed to show up as something on the HTML, but I don't see it and document.getElementById() is not finding it. This is what I have: <apex:page id="parampage"> ...
0
votes
2answers
1k views

Pass input date values to controller

I am unable to pass date values to constructor :Attempt to deference null object: Vf page: <apex:pageBlockSectionItem > <apex:outputLabel value="From Date" /> <apex:...
0
votes
0answers
81 views

Paragraph Sections and Sub Sections Numbering in Visualforce PDF

Am rendering vfp as PDF. I want to show sections and subsections Numbering dynamically to the paragraph for example 1. First Section 1.1 First Subsection for first section 1.1.1 child for ...
1
vote
0answers
238 views

Multiple checkboxes form to create new records

I'm trying to update a jQuery mobile app that uses visual force to do a couple different things, one of which is to create multiple new Tasks based on checkboxes for picklist values. Each value ...
6
votes
1answer
4k views

Dynamic Picklist Values by RecordTypes? [duplicate]

I've searched high and low and can't seem to find any posts or blogs showing how to get picklist values for a particular recordType to use in a custom controller. I can easily obtain the RecordType ...
0
votes
1answer
896 views

External URL is not accessible unless whitelisted

Following is the error I am getting on using bootstrap for PDF file generation. External URL = https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/fonts/glyphicons-halflings-regular....
0
votes
1answer
42 views

I need to get the total number of the opportunities depending on the picklist value selected

I want to create a field in accounts object that will display the total number of opportunities depending on the picklist value selected. What approach should I use to achieve this? As much as ...
0
votes
3answers
2k views

How to display records on a pageblocktable based on the value of a picklist field?

Hi i am new to salesforce. I want to display some records on a pageblocktable, which must be based on the picklist field. e.g. If i select Quarter4 from quarter picklist field pageblocktable must show ...
1
vote
1answer
36 views

Trying to populate fields based on contact lookup

Action support is refreshing overall page.Only following section should be refreshed.Not happening may be m missing small point. Vf page: <apex:pageblockSection title="Prepared For" columns="2" ...
1
vote
1answer
4k views

Add/Edit multiple Records on custom VF page

Is it possible to add or edit multiple records on a custom VF page? For the example below, if lineItemList return fewer than 10 records, I would like to render blank inputfields for insert of new ...
1
vote
2answers
2k views

Get Map values inside vf Component and in apex:repeat

Hi have a List<String> Key and a map<String, String> mapkv VF Page: <apex:page applyHtmlTag="false" controller="testController" extensions="otherclass1" action="{!someFunction}"> ...
2
votes
1answer
2k views

Process Builder giving error The flow failed to access the value for [example] because it hasn't been set or assigned

I have a process builder which is giving error: unable to find field dataType for complex reference. In server log :The flow failed to access the value for myVariable_current.Product2....
0
votes
1answer
3k views

how can we populate picklist values from custom object in visualforce page

I have a custom object(survey__c) and custom field which holds the picklists values of the month (month__c). i want to use these picklist values in vf page.... i am using a custom controller in vf ...
0
votes
1answer
86 views

Vf page Issue with account lookup

I am not able to get account name as lookup to account as it is standard lookup field it appear as read only. As <apex:inputfield value="{!quote.accountid}"> should get that . > <apex:...
2
votes
1answer
1k views

schema.getglobaldescribe needs test class [closed]

need to cover try and catch blocks public class InsertDynamicSObject { public String RecordName { get; set; } public String ObjectName { get; set; } public ...
2
votes
2answers
227 views

VF Page - Landing page - Building Tables

I am creating a VF page that will serve as a "Landing" page when Partners using our Portal, click a link for Sales Training. The Page is fairly straight forward to create, however I'm not sure how to ...
4
votes
1answer
2k views

Can i Create Custom Button same like Create PDF button of Quotes?

when i click on Create Pdf then this pdf Preview open,i need exactly same functionality . i want to create button like Create PDF button of Quotes, i make same functionality for my custom object , ...
5
votes
1answer
2k views

how to make selected radio button as checked?

depending upon the selection of radio button it displays the selected row in differnt fields. the selected radio button disappears after the selected row splited.but i want the radio button selected. ...
-2
votes
1answer
231 views

upon checking checkbox field on parent need to check child records exist or not

I Have a Parent Account object in this i have check box field "No Asset exist". when ever i am trying to check the checkbox it need to show error message if Assert records exist for this Account ...
2
votes
1answer
1k views

How to show wrapper list records in vf page if that list we made from http response

VF page part :- <td > <apex:pageBlockTable value="{!doclist}" var="WrappedCustomer" cellspacing="2" columnsWidth="50" rendered="{!showpage}"> <!-- value="{!doclist}" --> ...
0
votes
1answer
32 views

related to visualforce page getting images from godaddy [duplicate]

Is It possible to get images from godaddy and use in visualforce page ,if it possible can You tell me syntax for that in visual force page.
1
vote
1answer
718 views

Passing Time Frame parameters in Report?

I need to pass report parameters from VF page.? I want to run a report from Thursday to Friday dynamically... I have the dates on Vf page... But how to pass in the report URL. https://na5....