Questions tagged [pageblock]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
298 views

Visualforce PageBlock in grid view

Is it possible to show a Visualforce PageBlock in a grid? I am looking to have 3 pageblocks horizontally on the page like below:
Alan's user avatar
  • 27
0 votes
1 answer
2k views

How to show/hide a visualforce component using the rendered attribute

I am trying the show the visualforce page with the pageblock section having id=table1 as hidden when it loads. When the user clicks the Execute button, then only the pageblock needs to be visible. I ...
Kiran G's user avatar
  • 19
0 votes
1 answer
170 views

Is there an elegant/easy way to set tab order on a VisualForce page?

My VF page has input sections for which I want each section to have the tab-key order to be set Top-Down as one can set for a page layout as below. Is there a way to do this other than setting the ...
Irene's user avatar
  • 1,829
2 votes
1 answer
521 views

CommandButton & pageBlock title ignoring slds styling

I have a Visualforce page using slds styling, and some of it works and some of it doesn't. The pageBlock title does not have the shaded area around it - just displays the text in bold The ...
Irene's user avatar
  • 1,829
0 votes
1 answer
761 views

How to display leads and contacts on visualforce page and provide edit ability

I have a form in visualforce page. Once user fills out that form and hits 'Get Information' button, on the backend I am running a SOQL query to fetch leads and contacts based on the information ...
Anonymous's user avatar
0 votes
1 answer
660 views

Page Block section is disturbing the table structure

I have a Visualforce page, which is showing table. <apex:page controller="TestControllerForIssue"> <style type="text/css"> .myClass { width: 50px; } <...
वरुण's user avatar
0 votes
0 answers
2k views

Alternatives to PageBlock Visualforce in Lightning

I am using 2 pageBlocks in a visualforce page. One is rerendering other based on the selsctions. I want to convert the whole visualforce page into lightning but not getting the clear idea of how can I ...
sami ullah's user avatar
0 votes
0 answers
603 views

How to display the block after clicking command button

<apex:outputPanel id="filterBlock"> <apex:pageBlock rendered="{!isLoadPage}"> <div style="width:35%;" id="maindiv"> <apex:pageblocksection > <apex:...
ram135868's user avatar
0 votes
0 answers
164 views

dynamic pageblockbuttons not showing on bottom location

i'm trying to show pageblock button in bottom side but its not showing on bottom only showing in top location how to set bottom Component.Apex.pageBlockButtons pbButtons = new Component.Apex....
cloudZigZag's user avatar
  • 1,366
0 votes
1 answer
386 views

Visualforce Checkbox Rerender via Ajax - Whats wrong with my code?

I want to disable the pageblock section when the checkbox is checked,enable it when the check box is unchecked. I had tried with rerender but it is not working as expected. Note:The checkbox is ...
subramanya_C's user avatar
1 vote
1 answer
953 views

Render section or display error message

I have a requirement where I want a section to render depending on a value of a controller variable. If the section is not rendered I want an error message to be displayed. I have the following piece ...
Rimii's user avatar
  • 371
0 votes
1 answer
48 views

i am writing a wrapper class . error showing Entity is not api accessible

This is class public class Displayprods1 { public List<OpportunityLineItem> proList{get;set;} public list<wrapper1> wrp{get;set;} List<OpportunityLineItemwrapper> ...
bingi's user avatar
  • 1
3 votes
2 answers
5k views

html button inside Visualforce page generate a refresh on the page without any action connected to it

Situation I have a simlpe visualforce page, where inside a pageblocksection i have put a html Button. <apex:page controller="myTestPage" > <apex:form rendered="{!AND(NOT(isError))}" &...
Klodj_Meta's user avatar
5 votes
1 answer
3k views

Background color for Pageblock title

I have a visual force page which uses pageblock tag: <apex:pageblock title="Sample"> </apex:pageblock> I would like to make the background color of title="Sample" as green. How can I ...
SfdcBat's user avatar
  • 4,791
0 votes
0 answers
95 views

How to avoid page reload on standard Edit action?

I have two pageBlocksection and i put QuickSave action on first PageBlocksection and it's working fine and it's rerender the next pageBlocksection but Now, i want one button on Second pageBlocksection ...
Nihar's user avatar
  • 1,182
5 votes
3 answers
7k views

How to show/hide pageblock based on clicking a button in Visualforce using a standard controller?

Here i have one Visualforce page and my situation is when i am clicking on Save Button both PageBlock will appearing but i want is : when i am click on Save the existing Pageblock should be hide and ...
Nihar's user avatar
  • 1,182
0 votes
1 answer
39 views

Add custom block on each application page

I noticed that almost ALL pages in my application have "Recent Items" block Can I somehow create such "custom blocks" and add them to each page, for example under "Recent Items"?
Vladimir's user avatar
  • 167
1 vote
1 answer
9k views

How to center align <apex:pageBlock> title with CSS?

I've had a search on google and SE and can't seem to find a definitive answer. How do I center a pageblock table header? It's nested like this: <div class="pbHeader"> <table border="0" ...
user avatar
0 votes
1 answer
116 views

Label for formula field in 3rd column of PageBlock is wrapping

No matter what my formula fields label is wrapping. It has plenty of room to unwrap. The PageBlock it's in has 3 columnns in it. This is my formula field <apex:pageBlockSection title="Costs"...
tjcinnamon's user avatar
  • 1,620
0 votes
1 answer
206 views

How to postion the pageblock with style tag

I have to place one of my the pageblock inside a panelgrid to the top. Now its in the center postion. I tried using Inspect Element at run time, to make it top and found out a way. Its position: ...
Reshmi Smiju's user avatar
0 votes
1 answer
1k views

Customize the page block buttons in visualforce page

I am developing an edit page for my company and i have a problem with the page buttons. Is it possible to put them in a random position not just the one offered with the location="top/bottom/both". ...
Darko Todorovski's user avatar
0 votes
2 answers
2k views

How to Wrap PageBlockTable inside PageBlock?

I created a very simple VF page which displays 28 fields from a custom object. The code looks like this: <apex:pageBlock > <apex:pageBlockSection > <apex:...
Rajiv Bhatt's user avatar
  • 1,802
0 votes
1 answer
579 views

Hide pageblock based on field value

I'm new to this so please try to be extra patient with me :) Trying to display an message in the Account layout based on the Account name field. So what I've got working so far is the error message. ...
jekism's user avatar
  • 41
2 votes
2 answers
473 views

How to display a selectlist in the title portion of a pageblock

On my VF page I have a page block that contains a table inside it. I wanted to be able to put selectlists to filter the data in the table, and ideally I want to put them at the top of a pageblock so ...
newuser's user avatar
  • 159
0 votes
1 answer
402 views

Stop apex from displaying label in apex:pageblocksection

Can we stop apex from outputting labels for apex:outputText within a pageblocksection? I have a html table on which I only want to input text field, i.e. without any labels. But the rendered code is ...
Asad Malik's user avatar
1 vote
1 answer
606 views

How to freeze a pageBlock?

Most of the posts I went through talk about freezing a column in a pageBlockTable and seems like there is now a new 'floating headers' feature in one of the recent releases. But, I would like to ...
Lightning Evangelist's user avatar
1 vote
1 answer
2k views

Approval Process : Lock the whole Opportunity Including Notes and Attachment

Currently I have an approval process, that locks the opportunity and the record but the user, still can submit Notes & Attachments after. Is there a way to lock those as well?
Metawaa's user avatar
  • 709
1 vote
1 answer
649 views

Query and display aggregate list

I have an aggregated list that counts the number of records from a custom object created by a user that I display on a visualforce page. I need to also display the same thing from a different custom ...
DevelopHawaii's user avatar
1 vote
1 answer
106 views

Collapse a pageblock section when another pageblock section collapsed

can someone let me know how to manage this? Collapse a pageblock section when another pageblock section collapsed?
Testing_SFDC's user avatar
  • 2,940
0 votes
1 answer
845 views

How can I Wrap an Apex:image with a condition inside a pageBlockTable Column?

I want to display different images inside this pageBlockTable Column based on the value of a field. I am receiving this error: You may specify either a ''value'' attribute or a body for the ...
user7167's user avatar
0 votes
3 answers
2k views

Page Block Title went to a new line

I'm creating a search page. The filters is on a different page block than the results but then the title went to a new line. (see photo) Is there a way to put "Search" and "Filters" on the same line? ...
Raph's user avatar
  • 73
3 votes
1 answer
2k views

Vertically align two pageBlocks

I've got minor annoyance: I'm rendering two pageBlocks one after another, but they end up not aligning correctly. Here's the code: <apex:form > <apex:pageBlock title="Populates all ...
dzh's user avatar
  • 4,106
6 votes
1 answer
4k views

Scrollbar for pageBlockSection column1 but not for column 2

I have a pageBlockSection that has 2 columns. I would like 1 scrollbar for the left column so that if the information on the left column is very large then you can scroll through it without changing ...
Louis Pujol's user avatar
  • 1,235
1 vote
1 answer
427 views

Which elements get rerendered and which can't be

i previously asked a question reRender is not working .i get a good reply of that .again i am trying to rerender a pageBlock and its not getting rerendered.i want to know which elements get rerendered ...
mathlearner's user avatar
  • 2,151
9 votes
3 answers
12k views

PageBlockSection with 4 columns

I have a pageblocksection with 4 columns where the spacing between 3rd and 4th is not equal.How to fix the spacing between columns. <apex:page standardController="Account"> <apex:form >...
sfdc's user avatar
  • 13.7k
0 votes
1 answer
8k views

Unable to display map of <string, list> in repeat

I have a map Map of String(key) and List(value). The list is a list of a wrapper class object I initialize the map: map.put('x', new List); map.put('y', new List); I populate the map like: map....
codeinprogress's user avatar
2 votes
4 answers
1k views

Compare values in pageBlock using JavaScript

I want to have a little validation when user enter value into apex:inputText it compares it with apex:column, if difference is more than 10%, it would alert the user. Probably it would be triggered ...
dzh's user avatar
  • 4,106
1 vote
0 answers
909 views

PageBlockTable inlineEdit - save issue

I have VF page where I have displayed Contact information in pageBlockSection with mode="inlineEdit" as below.. <apex:page standardController="Contact" extensions="ContactDetailController" ...
Maria's user avatar
  • 287
3 votes
1 answer
2k views

Controller fields not updated when actionSupport onchange event used

I have 3 fields Client, BilltoClient and project. Client is a lookup and billtoclient and project are dropdown. The project filed should get populated on the bases of client name and the billtoclint. ...
AnuRaj's user avatar
  • 2,482
0 votes
1 answer
937 views

Show contacts deatils in pageblocksection as selected in picklist

I have List of all contacts in picklist field on visualforce page. Below that field i have a pageblock section giving details of contact. I want to show only the details of the field as selected in ...
TestNS's user avatar
  • 1,037
2 votes
1 answer
3k views

Validation error message shows for all Inputfield in pageblocktable

I have a custom page with standard controller and extension. I have a page block table with inputField to display the account lookup. When the page is submitted with the wrong Account value in account ...
vicky90's user avatar
  • 131
1 vote
1 answer
2k views

Display javascript result in a pageblocktable

I am making a Ajax call to a REST API and parsing the response and maintaining the parsed values in a delimited string. I want to display the same string in the pageblocktable without taking the ...
Prashant Karadi's user avatar
7 votes
1 answer
1k views

Translate picklist value in PageBlock title

We are using <apex:pageBlock title="{account.MyField__c}"> where MyField is a picklist with the corresponding translations. The problem is that the picklist value is not translated to the ...
Acuariano's user avatar
  • 656
6 votes
3 answers
7k views

pageblocktable rows spanning over page breaks when rendered as pdf

I have a pageblocktable that is being rendered as a pdf. The PDF is set as A4 landscape with small margins and page numbering in a style sheet. The problem is that rows in the pageblocktable span the ...
GdD's user avatar
  • 163
4 votes
2 answers
15k views

Label does not get displayed

I am using a apex:inputField in my vf page. This apex:inputField is in page block with apex:inputField their is also a apex:selectOption, to reduce the space between these 2 fields i put them in a ...
AnuRaj's user avatar
  • 2,482
3 votes
1 answer
3k views

How to create two tables in a apex:pageBlockSection

I want to develope somthing like this screenshot in an apex:pageBlockSection. How can i develop this??
SFDC_MJ's user avatar
  • 635
1 vote
1 answer
64 views

Reference from page to SObject which is another package

I have a reference in VF page to a SOBject from another package like this... <apex:pageBlockTable value="{!UsageStats}" var="usageStatRecord"> <apex:column headerValue="AM_Details__c"...
dublintech's user avatar
  • 4,253
3 votes
1 answer
1k views

how to make a list persist in a controller on page redirect

I have the following search function: public List<User> SearchResults {get; set;} public ContactSearchController() { if(SearchResults == null) { ...
gfppaste's user avatar
  • 845
5 votes
2 answers
2k views

Displaying more rows

I have a simple table for displaying users... <apex:page standardController="User" recordSetVar="Users" tabStyle="User"> <apex:pageBlock > <apex:pageBlockSection title="Today’s ...
dublintech's user avatar
  • 4,253
3 votes
1 answer
3k views

Rerender the column in the page block table on command button

I have a page block table whilch has two columns one with the data and the other with two buttons to move the records up and down. I am not able to rerender the column on the change. The code is as ...
Sushma Rao's user avatar