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.

Filter by
Sorted by
Tagged with
1
vote
1answer
128 views

Unable to render the multi-select and single-select based on the condition?

Am unable to render the multiselect and singleselect in the vf page, suggest me to fix this. code: <apex:page standardController="Account" extensions="OnlineExAnswer" sidebar="false" showHeader="...
0
votes
0answers
291 views

render apex:image with multiple conditions

In my Visualforce, I want to show a traffic red light or green light base on some condition. Below you find my code: <apex:outputpanel rendered="{!IF(OR(oldCrashesList.OCTO_Closure_Reason_Text__c =...
2
votes
1answer
136 views

Rendered Tags not Working on Sequential Visualforce Pages (Force.com Site)

If a user checks a checkbox to TRUE on page one of a force.com site, then on the next page the true section should render. This works as desired, however, if the user then goes back and checks FALSE ...
3
votes
3answers
2k views

How should I check whether the map is empty or not in Visualforce page (API version 38.0)

I am displaying some records in table format on my Visualforce Page. I want to check if a Map instance is empty before displaying it. I have tried with: .Size() and also with: rendered="{!If(NOT(...
0
votes
1answer
241 views

Rerender an apex:pageBlockSection from an apex:actionFunction

i have a javascript function that must delete an item from a cart and it's work well, i have a command button in which there is a render already and i want that my javascript function reREnder a ...
0
votes
0answers
42 views

Rendered in visualforce based on different outputs

I have an email field on a Contact and when I click a button it has to render a section that will tell you "You can't add the contact to a campaign because the email field is empty." If the email ...
0
votes
1answer
61 views

reRender value determine

Please find below code where I am facing problem with the reRender value. It's not working as expected. When I change Campaign value, as Product changes accordingly, Userlist below (which is in a ...
0
votes
1answer
388 views

How to place an IF statement in a title attribute on a Visualforce page

I have a syntax issue with this line of code: <apex:sectionHeader title="{!if(!PP_IsOwner,!$Label.D1,!$Label.D2)} /> Here is the relevant line of code from the controller: public Boolean ...
1
vote
2answers
2k views

Rendered condition in visualforce

I Have Script : <apex:pageblocksectionItem > <apex:outputLabel value="All Employee" /> <apex:inputCheckbox id="ProcessAll" value="{!isAllEmployee}" ...
0
votes
1answer
45 views

Problem with Rendered attribute behaving incorrectly. Seems to always return false when the page is loaded?

I must be doing something silly with my code, but cannot for the life of me figure out why neither the Boolean userNeedsVerify nor the method checkForVerify() are rendering when they should be. I've ...
0
votes
3answers
580 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
5k 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
618 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
948 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
44 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
1k 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
45 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
79 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
593 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
224 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
431 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
256 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
504 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
260 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
2k 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
7k 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 ...
2
votes
1answer
3k 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
41 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
73 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
1k 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
950 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
900 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
4k 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
96 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
97 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
140 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="...
4
votes
1answer
13k 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
2k 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
742 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
52 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
484 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
2k 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 ...