Skip to main content

Questions tagged [dynamiccomponent]

Filter by
Sorted by
Tagged with
0 votes
1 answer
1k views

Is there a way to make button groups within a lightning web component responsive?

I would like to know if it is possible to change the way button groups appear based on the size of the browser window. Below is a screenshot of a small component that I have. The buttons themselves ...
Adam Drissel's user avatar
1 vote
1 answer
49 views

Dynamic component

I have a configuration in which I dynamically create a checkbox component. The checkbox works. I now want to perform an action when the checkbox changes. I have the following code. My onCheck ...
Michele Kleinhomer's user avatar
2 votes
1 answer
970 views

Lightning component: Invalid Literal Value[1,1]: Javascript :Getting the below error at random when opening the component in ipad salesforce1 app

i have created a lightning component and that component is dynamically created and called from another component using $A.createComponent( dynamicComponent, I am getting the below error at random ...
Ankur ---'s user avatar
0 votes
0 answers
32 views

CSS when dynamically creating a component

I am dynamically creating the following checkbox component. I want to have the checkbox line up next to or above the label. I believe I need to use CSS to do this. I don't know how to dynamically ...
Michele Kleinhomer's user avatar
1 vote
1 answer
2k views

Use AMPscript to create dynamic math calculation of a reduction price

How could I write AMPScript for this basic calculation below? I would like to calculate the price after the reduction Example: Price = 65000 Reduction = 30% Reduction Price = 65000 -((65000*30)/100)...
Pauline's user avatar
  • 13
1 vote
2 answers
3k views

lightning progressStep not able to set step when dynamically created

I am dynamically creating a progress bar, however, when attempting to set the current step, if my components are dynamically created, they are never set to the step I indicate. Seems to only work If ...
glls's user avatar
  • 20.3k
1 vote
1 answer
2k views

Passing id between 2 lightning components

I have two separate components, I want to pass the survey id after saving to create the questions with the same survey id. here is the screenshot of survey form : and my code for survey component ...
Reda Dev's user avatar
-1 votes
1 answer
40 views

Lead Convert guarantees Contact Attribution on Opportunity. How to guarantee it when Opportunity is created from Standard Contact Detail Page?

Here are options, examples, my comments, and my requirement for different approaches to creating Opportunities from the Standard Contact Detail Page. I am looking for help with option 3. I need to "...
Peter Noges's user avatar
  • 1,140
1 vote
0 answers
124 views

force:outputField does not generate in dynamic component

I'm trying to use force:outputField in dynamic generate component and it does not work. When I place console.log messages, I do not see any message in console. My code is $A.createComponent(...
user47431's user avatar
0 votes
2 answers
489 views

Using Global variables inside of Custom Metadata with Visualforce page Modal

What are design options for the following requirements? End user specifies the text of a Modal window to be something like: Hello [User Full Name], Because you chose [Case.FieldA] goto this <a ...
jangiz's user avatar
  • 133
6 votes
1 answer
2k views

$A.createComponent fails with internal server on create aura:HTML with body

The following code fails: $A.createComponent( "aura:HTML", { tag: "div", body: 'value', HTMLAttributes:{"id": "Temp","class": "class name here"} }, ...
Dmitriy L's user avatar
2 votes
1 answer
607 views

Lightning Dynamic Component Init Action

I have a lightning component like below Dynamic.cmp: <aura:component controller="Mobile_Controller"> <aura:attribute name="testDate" type="String"/> <aura:handler name="init" ...
erkan çipil's user avatar
2 votes
2 answers
1k views

How to iterate over pageblocktable dynamic component inside controller

All, I am trying to use dynamicComponent to build a PageBlockTable. In the controller I want to iterate over each element and perform certain operations. My VF page looks something like this <...
vetal_king's user avatar
2 votes
1 answer
2k views

Are toasts not generated in standalone app or in VF page?

I am dynamically creating a toast as shown below. This toast is created when response is received from server. I have created a component for toast and am dynamically creating it using $A....
Sarang's user avatar
  • 2,665
4 votes
0 answers
158 views

Dynamically injecting Visualforce markup into component

I have an issue where I am trying to render a component on a VF page where I don't know if the component exists in the org or not until run time (I am trying to use a dynamic component on the front ...
Embattled Swag's user avatar
1 vote
0 answers
126 views

How to access dynamically created component

I have added a component dynamically "ChildContainer" in a div's body. Now I want to access it and want to add again a new component dynamically to the newly create component. Main Component Markup: ...
shilpa's user avatar
  • 85
1 vote
1 answer
842 views

Onclick of related list show more link, it's redirect to home page. while using apex:relatedlist and salesforce global variable action

So let me explain my issue. We have a custom object example custom_object__c. We decided to override the detail page using our custom VF page. SO we have one more VF page that will be home page of ...
Ratan Paul's user avatar
  • 22.8k
3 votes
2 answers
1k views

Getting a VF component dynamically by name in Apex

I am trying to use Apex to control which component to show inside a <apex:dynamicComponent> but I don't want to hardcode the component names. So my question is, how can I reference the component ...
Mossi's user avatar
  • 4,006