Questions tagged [rendering]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
36 views

Security Issue While Rendering Rich Text in Visualforce Page [duplicate]

I am trying to render a rich text content in a Visualforce Page like so : <apex:outputText styleClass="richText" value="{!richTextContent}" escape="false"/> ...
Hasan Tokul's user avatar
1 vote
1 answer
1k views

When will if:true stop working?

As per https://developer.salesforce.com/docs/platform/lwc/guide/create-conditional.html the legacy if:true directives are no longer recommended and must be replaced with lwc:if conditional directives. ...
afif j's user avatar
  • 21
5 votes
0 answers
125 views

How to debug the salesforce app on iphone?

I'm working on optimizing some custom lighning components for mobile use. On an android phone those components are rendered fine by the saleforce app, but if I open up the same components in the ...
Fin-luca Spiers's user avatar
0 votes
1 answer
47 views

display paragraph based on conditions

I have a VFP and I'd like to show some of my paragraph based on conditions. Here is one example of my code: <apex:outputText rendered="{!Offer__c.Offer_Type__c == 'Conditional' && ...
bbas's user avatar
  • 1
0 votes
0 answers
1k views

Javascript datatable - Row ID's not being picked up after pagnation

I am creating a data table which has an onclick event for 3 columns. When clicking any of the columns on page 1 everything works as expected. If I use the pagination to go to page 2 then the onclick ...
Ryan Gemmell's user avatar
1 vote
0 answers
336 views

How do I dynamically show/hide a line in a classic email template

I'm working on a functionality that sends an email to the user with a links to a list of documents. The following is the code from .email VF template that does it. <!-- starting lines of email --&...
Kishan B's user avatar
  • 136
0 votes
1 answer
590 views

How to use Conditional Field Rendering with Field Sets

I was looking for an example of conditional rendering of fields: like the one here How to hide/show the fields based on Picklist value My question is, how would you do this with the standard FieldSet ...
thinker's user avatar
  • 1,402
0 votes
0 answers
91 views

aura render event: DOM update issue

This question relates to this post, where we got rid of the unescapedHtml tag to rather use render event for dynamic DOM manipulation. My new issue is the following: I'm listening to the aura "...
M.C's user avatar
  • 63
1 vote
1 answer
5k views

LWC: Refresh for:each loops when new Array item added

I have 2 LWC components and loop through data in the following structure periods period.stages stage.details Within stage.details I render a table/form for each detail. After the table/form I have an ...
RedQueries's user avatar
0 votes
1 answer
2k views

I want to render two data table based on condition..both data table are present in the same lightning web component!

here I have one product data table without checkbox,this is the default one,but when I navigate from opportunity page to product page to add products to opportunity,to add product I need to render ...
user97539's user avatar
0 votes
1 answer
709 views

CPQ - How to conditionally renderig fields on quote edit lines

I want to render the Contracted price term field on quote edit line drawer based on Product Family
Purna's user avatar
  • 1
0 votes
1 answer
1k views

Aura if and else not working as expected

Aura if and else provides conditional rendering. But this is what happening in my case. I have 2 version of my UI one is desktop and other is mobile. Which gets rendered using aura if and else : aura ...
user3012372's user avatar
0 votes
1 answer
1k views

Apex includeScript outputting scripts after </html> tag

I am using the loadOnReady="true" attribute of <apex:includeScript /> to defer loading of scripts till DOM rendering is complete. Here's my VF page skeleton: <apex:page doctype=&...
miCRoSCoPiC_eaRthLinG's user avatar
0 votes
2 answers
633 views

aura:if visibility issue with force:inputField

I am having a problem with aura:if tag. As when my condition is false, my field will be invisible. The Problem is when my condition again went true from false then only Label of my inputfield is ...
SF Dev's user avatar
  • 89
3 votes
0 answers
572 views

Visualforce Page as a PDF File with metadata

Is there a way to render a Visualforce Page as a PDF File with metadata. Ex: Title , Authour, Subject and Keywords. I tried adding meta tags to the VF page and so many other ways. But non of them were ...
Gaiya's user avatar
  • 31
0 votes
0 answers
138 views

Rerender of select list throws validation error on required field

I have a vf page with drop down to select the activity type : Task/Event and display the fieldset accordingly. When I Change the type the required fields throws errors. I added action region and ...
pragii's user avatar
  • 65
3 votes
1 answer
3k views

How to conditionally render inside a datatable in lightning?

I have a lightning datatable and into one column called 'Set Primary Contact' I want to display an icon if the custom field IsPrimaryContact__c has the value TRUE, or a button 'Set primary contact' if ...
Damira Cora's user avatar
2 votes
1 answer
2k views

LWC Conditional rendering: alternative for fetching the initial database value?

Looking for a conditional rendering solution in lwc, which uses the initial value of a field in the database to decide whether to render or not. I have found a way to get it working, but it seems like ...
Rut ger's user avatar
  • 33
1 vote
1 answer
817 views

How to set lightning:input focus on initial render

I have a Lightning Aura Component form with several lightning:input elements, and a request to set the cursor/focus to the first input when the component loads. I have something like this in my ...
Matthew Souther's user avatar
1 vote
0 answers
1k views

Quick Action Lightning Component Throws Error due to Opportunity__c lookup field for Platform User

I created a custom quick action lightning component. This component contains a form with a lookup field to an Opportunity (see simplified code below). <aura:attribute name="config" type="...
Z33dawg's user avatar
  • 1,391
2 votes
1 answer
1k views

How can I display a spinner when switching between lightning:tabset tabs?

I recently asked a related question about how to display the lightning:spinner while waiting for a component to render. Although I found a way to make it work, and have thoroughly reviewed the 'Events ...
smohyee's user avatar
  • 3,814
1 vote
2 answers
2k views

Cannot understand this $A.getCallback error

I've a parent component containing a formattedRichText component and an edit button. Edit button onclick() calls a child component that hold a modal component. That modal component contains an ...
Bryce's user avatar
  • 442
3 votes
3 answers
355 views

Lightning Community: v.body on Custom Template is initialized even inside an aura:if

I have a Lightning Community and I'm using a custom HTML template to render my pages, inside this HTML template I have a v.body where my custom components are being displayed (the ones selected from ...
Ismael Slimane's user avatar
4 votes
1 answer
6k views

Rendering problem with Lightning in Chrome

Since a few days, I am experiencing a weird rendering problem in Lightning, only in Chrome. Two issues: Listview drop downs do not display -- all I see is a partial scrollbar, the actual list of ...
Jelle van Geuns's user avatar
2 votes
1 answer
722 views

Visualforce Page's outputText not updating when other outputPanels are next to it. Why?

I have the following controller variable {!selectedValue} that updates successfully on the page just fine when the markup next to it is commented out. However when I add the outputPanels back in, it ...
rmarq423's user avatar
  • 967
0 votes
1 answer
2k views

Is it possible to get the email subject string before sending it?

I know for a fact that it is possible to render the email context without sending it, using the Messaging class' method renderEmailTemplate. This is great for getting the message content rendered, but ...
Renato Oliveira's user avatar
0 votes
1 answer
374 views

Image not rendering in Visualforce Email Template

I am using a visualforce component in which I have an image tag that is rendering in the org, but when I am sending it via Email the image is getting rendered. Visualforce Component <apex:...
Maruf Bagwan's user avatar
  • 1,184
4 votes
1 answer
4k views

afterRender threw an error in 'lightning:select' [Cannot read property 'setAttribute' of null]

I'm intermittently receiving the following uncaught error on my lightning component. I have a parent lightning component which is used as an input form. The parent component uses metadata, stored in ...
KReader's user avatar
  • 41
1 vote
0 answers
247 views

How to print Lightning icon?

We're having below markup in Lightning component. <lightning:icon aura:id="statusIcon" iconName="action:check" size="xx-small"/> When java-script is controller prints the page with this ...
Pasan Eeriyagama's user avatar
3 votes
1 answer
570 views

Lighning Component: Rendering Lifecycle and JS static resources

I would understand the exact order of execution about "Lightning Component Rendering Lifecycle" and JS static resource. For example, we have this First Scenario. Alpha.cmp: <aura:component> ...
vt89's user avatar
  • 725
5 votes
3 answers
871 views

cmp.set() is blocking the UI to re-render, but no event is triggered

I'm having a big table filled with custom cell components and after changing a cell, the table gets re-rendered. dataChanged: function(cmp, evt, helper) { var table = cmp.get("v.data"); ...
itsmebasti's user avatar
  • 6,399
5 votes
3 answers
8k views

Aura: init of child component executes before parent components init, alternate approach?

I am new to Salesforce lightning, just started using aura tags. I have to pass parameters to a component (Aura Table) inside parent component (no inheritance), Unfortunately child component's init is ...
Sriram's user avatar
  • 701
3 votes
2 answers
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 ...
SFDC 44's user avatar
  • 664
0 votes
1 answer
556 views

Rendering Visualforce field based on Profile Id

I've created a Visualforce page and I want a record to render as an inputfield for certain profiles. Can someone help me with the Profile Id syntax? The following works if I remove the following: {!$...
Leslie's user avatar
  • 83
0 votes
1 answer
219 views

Setting Fields as required without using Required = True

I have a SelectList from which user selects x,y,z recordName from Object 'A' in a pageBlock 'A' for which the an another pageblock 'B' gets rendered showing fields to insert into 'B' object. Out of ...
Rajeev's user avatar
  • 222
2 votes
1 answer
1k views

Dynamic Visualforce Input Field

I am trying to make a dynamic visualforce input field. Actually, I have already made it before, however I am trying to clean up code so that I only need one input field per page. I have a table on ...
Konnor McDowell's user avatar
3 votes
1 answer
2k views

Issue changing inline css during Lightning afterRender

I have a simple Lightning component <aura:component > <!-- 100x100 box --> <div style="width:100px;height:100px;background-color:blue"> <!-- 50x50 box --> ...
Mike Porter's user avatar
1 vote
1 answer
53 views

VisualForce rerendering issue

I'm trying to set up some visualforce input and output to display if a select list is sent to a certain value. I've got my select list set to rerender the entire panelgrid on change and the inputs and ...
sfadmin's user avatar
  • 11
1 vote
1 answer
1k views

How do we determine the lightning component is requesting from Mobile device or a Desktop?

I have a Lightning Component which loads in both Mobile(SF1) and Desktop, is there a way to detect the client(who is requesting Mobile or Desktop) based on the parameter value I need to render some ...
Hasantha's user avatar
  • 2,045