5 votes
Accepted

How do I add a blank space in the pageblock title section

You can specify the header facet and place custom styles on the inner component. This means you don't need to rely on specific class names that Salesforce uses for its CSS. Here's an example: <...
sfdcfox's user avatar
  • 487k
4 votes
Accepted

How to detect showListButton/hideListButton being clicked on collapsible PageBlockSection?

Caution This code relies on the internal library, and so may break at any time. Use at your own risk. Basically, you can override the default method, which will allow you to do something based on ...
sfdcfox's user avatar
  • 487k
4 votes
Accepted

Skip column in PageBlockSection

You can insert an empty section item after the third: <apex:pageBlockSectionItem />
Martin Lezer's user avatar
  • 7,295
4 votes
Accepted

Visualforce pageBlockSection Column/Header Limitation

<apex:page standardController="Prospect_Profile__c"> <apex:pageBlock title="Prospect Profile"> <apex:form> <apex:pageBlockSection title="Account Information" columns="1"&...
Ricky's user avatar
  • 873
3 votes
Accepted

How to redirect to a record page?

you have to set attribute target="_top" <apex:outputLink value="https://www.salesforce.com" target="_top" id="theLink">www.salesforce.com</apex:outputLink>
Oleksandr Berehovskyi's user avatar
3 votes

How do I add a blank space in the pageblock title section

You are looking to preserve the white spaces and to achieve that you need to use white-space: pre; Whitespace is preserved by the browser. Text will only wrap on line breaks. Acts like the <...
jagmohan's user avatar
  • 1,065
3 votes

Visualforce rendering woes - layout is broken when using a parent <apex:outputPanel>

Unfortunately if the Section items are not rendered the first time then they will not be rendered properly. Also note that <apex:pageBlockSectionItem> components can't be rerendered; ...
Eric's user avatar
  • 54.1k
3 votes

SObject row was retrieved via SOQL without querying the requested field: Lead.OwnerId Error is in expression '{!save}' heating error

It is because, in query you cannot get ownerId in select clause. Replace your query with below code: List<Lead> le=[select id, ownerId from Lead where firstname=:ids.FirstName or lastname=:ids....
Anurag Bhardwaj's user avatar
3 votes
Accepted

question on using pageblocksection

I am not sure what is inside your interviewSkillReviews in your controller class. But in order to achieve your result, you will need something like this. In your apex controller: List<skillHelper&...
Lance Shi's user avatar
  • 13k
2 votes

PageBlockSection with 4 columns

Another method is to create a table (as many columns as needed). Embed a pageBlockSection columns="1" within each table column. This still compressed the labels a little, so I used styling as well. ...
Nicholas Koopman's user avatar
2 votes

Help text is not displayed for outputfield

You need to use the <apex:pageBlockSectionItem> text if you want to specify help text. <apex:pageBlock ...> <apex:pageBlockSection ...> <apex:pageBlockSectionItem ...
Adrian Larson's user avatar
  • 150k
2 votes
Accepted

apex:outputLabel : Not able to display on top of inputField

Use this logic for apex:panelGrid and do not use apex:pageBlockTable <style> .colStyle1 { width: 10%;padding-left:5px; text-align:left; padding-top:3px; padding-bottom:5px;} .colStyle2 {...
Santanu Boral's user avatar
2 votes
Accepted

InputField Conditional Font Styling

The syntax is: IF(condition, value_if_true, value_if_false) What you need to fix: You are missing the IF function entirely You are missing quotes around your value_if_true You are missing ...
Adrian Larson's user avatar
  • 150k
2 votes
Accepted

Page Block section is disturbing the table structure

To use PageBlockSection with HTML table, you will have to include PageBlockSectionItem and have an outputPanel inside PageBlockSectionItem. And columns attribute of PageBlockSection should be set to 1....
Vijay Ganji's user avatar
  • 6,586
2 votes

Dynamically set columns on pageBlocksection and pageBlockSectionItem?

Basically, no, it's not going to work this way. You'd have to use multiple apex:pageBlockSection elements to determine if you want to show 1 or 2 columns, then display the fields within. The markup ...
sfdcfox's user avatar
  • 487k
2 votes

Does reRender of apex:PageBlockSection invoke the constructor?

Attribute immediate="true" present in commandButton. This attribute does not fire getters or setters, defines that validation rules should be skipped and field values would set to blank values. refer ...
Oleksandr Berehovskyi's user avatar
1 vote
Accepted

Avoid text wrapping in apex:pageblocksection in VF page

You're putting an apex:pageBlockSection inside an apex:pageBlockSectionItem. In other words, Visualforce is doing exactly what you're asking it to. apex:pageBlockSectionItem takes up to two components ...
sfdcfox's user avatar
  • 487k
1 vote

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

You can set the tabIndex programmatically. While you do need to write a script, you can make it as simple or complicated as you'd like. Here's a quick example: <apex:page doctype="html-5.0&...
sfdcfox's user avatar
  • 487k
1 vote
Accepted

visual force pages insufficent privileges

I think the best way to show a nice (and customizable) error would be to give everybody (all profiles) access to the VF page, but customize the page in a way that the data is only shown to the ...
Guy Clairbois's user avatar
1 vote

VF page with dynamically generated HTML code?

You can use <apex:outputText escape="false" value="{!variable}" /> to achieve this flow. Or you can also use JavaScript to achieve this // Select the element var childDiv = document....
Tushar Sharma's user avatar
1 vote

Grid in vf page

For <apex:panelGrid> you can use the "title" attribute to show the tooltip when the user's mouse pointer hovers over this component. As per what I see in the above code I think you also have to ...
Ram Agarawal's user avatar
1 vote
Accepted

Rerender Pageblocksection with a rich text field

Here is a quick barebones example of what I did to workaround this issue. There is a separate VF component I include in the page to help handle the rich text fields: <apex:component > // ...
Antonio Manente's user avatar
1 vote
Accepted

Need help in rendering pageblocksection depending on record type name

You should change your without using hardcoded recordtypeIds. Also, recordtype ids are available from metadata. No need to use SOQL query for that. So, change your controller like this. I have put a ...
Santanu Boral's user avatar
1 vote

Adding section on button in visualforce

You can output an apex:pageBlockSection per object, starting with 3 created in your controller and then having a button that adds one at a time and re-renders the page block to show the new additions: ...
Keith C's user avatar
  • 136k
1 vote

Rerender an apex:pageBlockSection from an apex:actionFunction

I would suggest using a single function to do this: function updateCart() { var remove = window.confirm("Do you want to delete all"); if (remove){ remove(); return remove;` } } then <...
Eric's user avatar
  • 54.1k
1 vote
Accepted

InputFields don't appear on some parts of the page, even though they do elsewhere

You have missed the apex: namespace in your inputfield here, also you are wrapping more than 2 child elements inside the pageblocksectionitem. once you add the apex: namespace the page may complaint ...
Rao's user avatar
  • 16.7k
1 vote

Alignment issue pageBlockSection

Everything you need to know is here: https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_panelGrid.htm. Specifically, you want to look at 'rules' for the lines and '...
raffters's user avatar
  • 294

Only top scored, non community-wiki answers of a minimum length are eligible