Questions tagged [rendered]

rendered is an attribute in Visualforce Components used to determine whether the Component should be visible in Visualforce Page or not by passing true or false.

0
votes
3answers
280 views

VisualForce - rendering two boolean fields

I'm trying to create a condition on a VF page to show me a field only if the two conditions are met. (I.e. I want to use the 'rendered' attribute twice) Here is my code: <apex:inputField value="{!...
3
votes
2answers
3k views

Rerender pageblock on change of picklist

I am working with with picklist. Here I have to show a pageblocksection on change picklist but when I change the picklist it rerenders all the page and I am able to see pageblocksection but my ...
1
vote
1answer
387 views

Displaying fields based on picklist (apex:selectOption)

I've been spending a lot more time than I thought I would trying to get this to work. On my VisualForce page I have a pick list that depending on the value will display or hide additional fields. I ...
2
votes
1answer
707 views

Rendering Hyperlink in VF page

In a page block table based on a condition, I want to render some values as hyperlink and other as plain text. I am able to achieve the above requirement as below: <apex:column headerValue="...
0
votes
2answers
42 views

Page not rendering to new values of the search results

I am searching my for the records which satisfy the query in the controller. My page gets rendered correctly the first time I click the search button. But when I change the value for the query on ...
0
votes
1answer
909 views

Based on picklist selection, how to display corresponding pageblock on vf page- can anyone check this

<apex:pageblocksection id="pb1" rendered="{!(employment == 'sal')}"> <apex:inputtext label="salary" value="{!salEmp}" /> <apex:inputtext label="company" value="{!company}"/> ...
1
vote
1answer
36 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 ...
0
votes
2answers
72 views

Hide Visualforce Chart Based on Number of Data Points

I want to hide a Visualforce Chart if there are no data points. Since PieData is a list of data points, why can I not use the style below? <apex:page Controller="PieChartController" rendered="{!...
1
vote
1answer
441 views

Using Render With Repeat in Plain Text Email

I have a VF page set up as an email template. I have a repeat tag on the HTML part of my template that pulls in Cases based upon some criteria contained in an OutputPanel. I am trying to accomplish ...
1
vote
0answers
188 views

How to render Live Chat Button via a new custom field on the User Record?

Background: We are wanting to use Live Agent for customers only on our Community Site(behind login). I am trying to limit visibility to certain clients based on the Community User record. I am trying ...
5
votes
1answer
418 views

I want to render one page block section on the page to certain user only.

I want to render one page block section on the page to certain user only. <apex:pageBlockSectionItem rendered="{!$User.Name == opp.Security_Officer_Name__c}"> <apex:inputfield /> </...
2
votes
1answer
224 views

Page displays apex scripts while using render=“true” in <apex:page message> visualforce page?reasons?

When I am trying to display page message in vf page I am getting the following issue and that is because of using rendered="true" Page getting displayed with following code: visualforce page code: ...
1
vote
1answer
425 views

Double picklist with actionsupport

I've been facing with this kind of issue: I've a VFPage that has to work in a section embedded in a Standard Layout of a Standard Object (Quote). My goal to reach is: When a value is selcted from ...
1
vote
1answer
1k views

Button Render depending on a boolean value

I have the following piece of code function toggleButton(box, id1, id2) { var elm1 = document.getElementById(id1); var elm2 = document.getElementById(id2); if(box.checked){ elm1.style.display = ""; ...
1
vote
0answers
231 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 ...
2
votes
2answers
1k views

common.apex.runtime.impl.ExecutionException: SObject row was retrieved via SOQL without querying the requested field: Contact.bp_Billing_Address_1__c

I am trying to display a value from list which is created from multi-joined SOQL and though the field is part of SOQL statement, I still get the error: common.apex.runtime.impl.ExecutionException:...
0
votes
1answer
5k views

Conditionally Showing an apex:outputPanel

On a custom VF page, inside of an apex:repeat component I have two apex:outputPanel components. I want to show one apex:outputPanel when a checkbox field on the record is true/checked and I want to ...
0
votes
2answers
2k views

Conditionally render an <apex:OutputField>

All, I am trying to create a visual display of a list of contacts that are considered "High" influence. There is a pick-list field within the contact object that can be set to this value. I am using ...
1
vote
1answer
2k views

Usage of rendered={!! Value} in output panel component

I'm trying to understand this code, which was written in a custom component for VF page. I didn't understand the usage of rendered attribute in output panel with "{!!" . Usually we use only one ...
1
vote
1answer
37 views

Render condition error throws

I have below render condition that throws error. Can someone let me the correct condition? Please counter is a get set Integer value in controller that increments after a check in for loop inside ...
4
votes
1answer
71 views

Display the data if “quantity” is not = 0. Using multi map

<apex:repeat value="{!prod_quantity_1}" var="key"> <apex:repeat value="{!prod_quantity_1[key]}" var="innerKey"> <apex:repeat value="{!prod_quantity_1[key][innerKey]}" var="...
3
votes
1answer
724 views

Password protected Visualforce Page rendered as PDF

Is it possible that a Visualforce page rendered as pdf can be password protected? I am using Messaging.SingleEmailMessage to send mail with attachment, but I need the attachment password protected.
0
votes
1answer
852 views

Render condition not working

I have below render condition on below snippet that makes output field show on apex page when a particular checkbox is true for a list record. It is not working when that checkbox is checked from a ...
1
vote
2answers
720 views

How to display the default image if there is no attachment image

This is the default image code: <img class="logo" src="{!URLFOR($Resource.headerLogo)}"/> This is the attachment image: <apex:image url="{!URLFOR($Action.Attachment.Download,...
1
vote
2answers
3k views

How to hide output text using rendered?

I have a VF page with output text that I want to show based on the boolean blShowIt in the controller. I have 2 buttons on the form, one to show the text the other to hide it. And I set blShowIt to ...
0
votes
2answers
2k views

Conditional disabled fields in visualforce

I need to make fields disabled on a visualforce page to those that do not have the profile name of Account Manager, but it is not working. <apex:inputCheckbox value="{!Account....
2
votes
1answer
90 views

Currency field and rendered attribute do NOT seem to work together at all

I've just spent the better part of my day trying to sort this out. Seems that if i have a Currency type in my custom object (mortgages__c), there is no way to get the Page to gather input and reflect ...
2
votes
1answer
95 views

Using rendered=“” parameter causes checkbox to evaluate to null

Putting checkbox inside outputpanel or using rendered on itself, will display correctly, but will cause null de-reference when its used in the class. What is the reason behind? This works: <apex:...
0
votes
2answers
138 views

Render condition

Can someone please let me know what is my error here in the render condition? rendered="{!IF(AND(Counting != 0,Inquiry=='Inquiry'),true,false)}" Please note Inquiry is a param value set in apex page ...
3
votes
2answers
2k views

Call an Apex method from a render check

Is it possible to call an Apex method (not a getter) from a render check? I have tried multiple ways but get errors such as "Unknown method: readOnlyField()". I've included a stripped down version of ...
0
votes
1answer
1k views

VF component attribute control outputPanel rendered

I have the following VF component, <apex:component layout="none" selfClosing="true"> <apex:attribute name="label" description="This is pretty name for this input" type="String" required="...
3
votes
1answer
11k views

Adding multiple conditions in rendered argument

I have a link that I want to display when Category = 'data1' AND Custom URL = 'data2'. I know how to do this with only one condition, how can I do this with two conditions? <apex:outputLink value=...
2
votes
1answer
3k views

How does rendered/rerender work in Visualforce

This is not about walking out a particular scenario. It's all about my curiosity. I am just wondering how does rendered/rerender work behind the scene. My first understanding was it stores the related ...
0
votes
1answer
1k views

Visualforce dynamic/conditional page rendering using user Permission Set

Use Case Creating visualforce page to conditionally render elements from various custom objects based on the user's permission set assignment. Currently, the visualforce page in use uses the rendered ...
1
vote
4answers
1k views

Best practice for JQuery to hide/show a section with required fields

I'm building a wizard where I've a page splitted in some sections. One of them is shown/hidden based on the value selected for a picklist of another section, by using JQuery. But, the conditional ...
2
votes
0answers
28 views

Render based on TemplateId [duplicate]

I have a requirement to show an apex page message "XX YY" if the selected template id to email is "Update Status". (This message needs to be displayed when they make the selection not when they click ...
3
votes
1answer
701 views

showOnEdit within commandButton not working when PageBlock section starts with rendered=false

On my visualforce page I have a pageblocksection that starts off hidden, this pageblock is shown when the user selects a value from a picklist. This feature works, but breaks the 'showOnEdit' ...
0
votes
0answers
51 views

Pageblock Section is not getting rendered for different profile

I have a page in which one section should be rendered when one picklist value is selected. This working fine for system admin.But for other profiles the section is not getting rendered. <apex:...
0
votes
2answers
418 views

Double Rendering Issue on Visualforce Page

I'm stuck in climax work,please give suggestion I have picklist saying test1 yes No after selecting "yes" value it will show one more picklist. (This one rendering/working perfectly) test2 yes ...
0
votes
0answers
1k views

How to check is the map key exist or not

Hi on my VF page I want to render output panal on the based of if the key exist or not. I wan to check if the key exist or not. While checking I am getting an error that Map key result__c not ...
5
votes
1answer
1k views

reRender checkboxes problem

I have a menu (screen below) where the two section are refreshed using rerender. Depending to main object the sections are refreshed. The input checkboxes checked for the 1st main object are deleted ...
0
votes
1answer
244 views

Rendered in Tabpanel

I am getting an error like PDF generation failed for render in a tab panel. I need to do conditionally show the tab panel. Can some suggest a way out. Please find the snippet from my page here. <...
1
vote
2answers
183 views

Do not Show Image while Printing?

I have a Visualforce Page( Header with Logo-Image + Content) which is rendered as Pdf. This Vf page will be Emailed via Custom Controller Scenerio : When Email is Forwarded I want to Have Header(...
2
votes
2answers
388 views

How can I get my VisualForce Dashboards to Display Properly?

Looking through the VisualForce Developer's Guider, there is information on how to create a dashboard with VisualForce. I have no problem adding a VisualForce component or selecting the VF Page as ...
0
votes
2answers
378 views

PDF rendering Issue when Break Tag Is Used

I am getting this Issues in Vf Page when rendered as PDF "To" is Taking Spaces This is my HTML Tag <b>To,</b><br/> <b>ABC XYZ Ltd</b> when I Use the <br/> ...
3
votes
2answers
2k views

Render pageBlockSection based on RecordType

I am trying to build a custom New Case page, but am having issues getting sections to load based on the Record Type. <apex:outputField label="Record Type: " value="{!Case.RecordTypeId}"/> <...
0
votes
1answer
1k views

How to display 1 out of 2 possible fields values in same column : visual force

I have a column that needs to display date if there is no condition else display a combination of text+date if a criteria is met. I have to append a text Week Of to a date field if a custom field ...
1
vote
2answers
515 views

Appending text to Date field-Visualforce

I have to append a text PUNS to a date field (weird customer requirement!) if a custom field "Material Group" material_group__c in Object Order Line has certain values A, AB, C.. Since changing this ...
1
vote
2answers
2k views

How to restrict a column to display value if value exists

I have a pageblocktable that is inside pageblocksection. The pageblocktable has many columns. I want 1 of the columns to appear only if it exist. Following is my code... <apex:...
2
votes
1answer
10k views

rendered= expressions and use of the ! operator

I have an apex element which relies on the output of two Boolean methods to be rendered. At the moment, both methods are evaluating to true, yet the apex element is not rendering. If I reverse one of ...