Questions tagged [design-attributes]

Use design attributes to control which attributes are exposed in the builder. A design resource lives in the same folder as your .cmp resource, and describes the design-time behavior of the Lightning component—information that visual tools need to display the component in a page or app.

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

lightning-quick-action-panel remove scroll using css LWC

I am using lightning-quick-action-panel in the html and the component loads on a button click and it contains a data table. There are 2 scrollbars present and I want to get rid of one .When I ...
0 votes
0 answers
29 views

Deleting attribute from data designer is not possible

Trying to delete an attribute from Data Designer, but getting an error "The SendableCustomObjectField is invalid." This field is not used in Data Extension, and all links and relationships ...
0 votes
0 answers
441 views

Aura Component - Design Attribute with a Custom Label is not showing correctly in App Builder

I have been trying to set a Custom Label as the label of a Design Attribute in an Aura component but it's not working. As you can see in the image below, it is not showing correctly in the App Builder....
  • 26
0 votes
1 answer
150 views

How to make value table LWC component dynamic

I have the following syntax where I want to replace 'Accounts_List' with a design value : @wire(getDynamicTableDataList, { TableName: 'Accounts_List'}) wiredContacts({ error, data }) { ...
  • 2,206
1 vote
0 answers
66 views

Is it possible to change designer attribute in a LWC (not aura) that is on a flexipage without first removing the LWC from the Flexipage?

Today what we do is delete the LWC from Flexipage with a predeployment manual step and then it gets deployed through the package with update designer attributes. Is there a way to skip that?
  • 257
0 votes
1 answer
289 views

Pass value from flow to custom component and handle change

I am new here and have a question about flow. I am passing value to my aura component with design, but I cannot handle change. I am passing value from text field to my custom component, but it doesnt ...
1 vote
1 answer
136 views

Aura UtilityBar Components: How to set default component dimensions on the Lightning App Builder and prevent modifying of these values?

I am currently developing an Aura component for the UtilityBar and I am having trouble setting default values for the component on the App Manager screen. For an example: I would like to set height ...
  • 61
0 votes
2 answers
328 views

LWC unable to pass CSS attributes using targetConfigs

I have a simple LWC component where I want users to define CSS using designer attributes. However, it doesn't seem to pick it when I load it on the page even though console logs are picking up the ...
  • 1,127
3 votes
1 answer
263 views

How to add LWC/Aura dynamic App Builder component properties?

I am looking for ways to create Design Properties for an Aura or LWC component so that I can render different values in component properties based on chosen value in one property. Something very ...
  • 5,686
0 votes
1 answer
151 views

Can I have dependent pick lists in design attributes

I'm working on a case where I want to show picklists in design attributes. Here, in my case, I want to show them dynamically. i.e. let us take that there 2 picklists in design attributes, first to ...
2 votes
4 answers
5k views

Simplest way to display values from field names listed in design attributes

I'm trying to write a really simple component that takes the field names from the design attributes and displays only the field values, not the standard lightning-output-field. There are two(?) ways ...
  • 1,160
0 votes
1 answer
907 views

Radio button in LWC design attributes

I have a LWC which takes two boolean inputs isVideo and isImage in JavaScript file. Based on the value of isVideo or isImage, the LWC behaves differently. At a time only one has to be true. While ...
  • 1,064
1 vote
0 answers
101 views

Add design attributes dynamically with add button

In many standard LWC components, I have seen design attributes can be added dynamically with a + Add button. See the screenshot below. Can we achieve the same thing for custom components?
0 votes
1 answer
183 views

Journey Builder Decision Split Using DE question

We have a journey using Salesforce Campaign Member object as the entry source. Some of the contacts entering the journey (based on the member status on entry) goes through a decision split after ...
3 votes
2 answers
2k views

Specify the Navigation Menu when extending the forceCommunity:navigationMenuBase component

I'm using a custom component that extends forceCommunity:navigationMenuBase (see this Trailhead for an example of what I'm doing, documentation on the component). Is it possible to have a design ...
  • 3,714
3 votes
1 answer
861 views

Why Don't LWC Properties Render Correctly in Flow Builder?

Background We've built-in a number of properties for a LWC, and have allowed it to be visible in Lightning Record Pages (lightning__RecordPage) and Flow Screens (lightning__FlowScreen). The ...
  • 674
0 votes
0 answers
46 views

Render DesignAttribute configuration by visualforce page (LightningOut)

Hi I have a lightning component with design attributes. I want to render this component in salesforce classic view. So I have created a visualforce page and embedded the lightning component using ...
0 votes
1 answer
1k views

You can't remove design attributes 'helpURL' when the component implements a Lightning Page interface

I'm trying to upgrade a managed package. I removed a design attribute "helpURL" from my lightning component. So I get the error message "You can't remove design attributes 'helpURL' when the component ...
0 votes
0 answers
216 views

get design attribute value on same page to another component in lwc

here is design atrribute @api parentcls and childcls i m trying to fetch these design attribute in another component on same page i tried constructor too but didnt get value on load @api parentcls='...
0 votes
2 answers
1k views

LWC design attributes doesn't work in the Community with Anonymous User

Did someone try to use LWC in Communities? I created component to dynamically render Knowledge articles based on provided Topic by passing Topic.Name as Design Attribute. It works in Builder, but ...
  • 4,212
1 vote
2 answers
605 views

Line spacing not applying when using <li> tag

This is for Salesforce CPQ Template Content. I have a spacing issue when using the li tag. If the item is too long and is forced onto more than one line, it doesn't take into account the style="margin-...
  • 181
0 votes
1 answer
2k views

How to add css to override existing styling in lightning component

I am using an existing lightning component that displays some checkboxes. I am wondering if there is a way to reduce the size of the checkboxes. <design:component > <design:attribute ...
  • 555
0 votes
1 answer
1k views

How to use Custom Labels in design attribute on Lightning web component [closed]

I'm developing a LWC and i need to know how to use a custom label in design attributte on lighning web component.
1 vote
1 answer
1k views

How to populate design attribute datasource automatically

We are using lightning components in a lightning community. When a user drag-drops a component in the community builder, in the configuration options we give user ability to select image names and ...
  • 2,500
12 votes
2 answers
6k views

How can we expose inherited properties from a super component’s class in a lightning Web Components through targetConfigs (design attributes)

Is there currently a way of exposing properties inherited from super classes in Lightning Web Components, as design attributes (targetConfigs), or is this a gap? I’m inheriting base classes which ...
1 vote
0 answers
195 views

Is it possible to extend a standard rich content component's design attributes from the Community Builder?

Just to set your expectations I'm fairly new to developing lightning components. The reason why I'm asking is I want to add additional functionality like a CSS class selection for a list so that an ...
  • 11
0 votes
0 answers
141 views

Use VisualEditor.DynamicPickList with blank valule

I have a component that uses VisualEditor.DynamicPickList to show active case types users can choose when configuring it on community layout. Works like magic but now I want to reset one of the ...
  • 1,149
1 vote
0 answers
123 views

Section accordion for attributes in design resource for custom lighting component

In building custom lighting components with lots of admin-configurable properties, our design resource interface can get quite lengthy. It would be nice if we could have collapsible sections in the ...
  • 113
5 votes
1 answer
2k views

update design attribute value dynamically

Is there a way to update a 'defaul' or manually entered design attribute value? For example, component.cmp <aura:component implements="forceCommunity:availableForAllPageTypes" access="global" &...
  • 19.5k
2 votes
3 answers
636 views

Color Picker in design:component?

Any ideas on how to add a color picker into the .design component of a Lightning bundle? There's nothing in the docs and I don't know how to insert lightning:input with type="color" into the design ...
2 votes
1 answer
810 views

Possible to use multi-line text in the designer for string aura:attribute or even rich-text attributes?

I have components which need complex parametrization like JSON values, richtext or very long text values. My attribute is defined as string like this <aura:attribute name="pageParams" type="...
  • 33.8k
4 votes
1 answer
80 views

design:attribute on Locked Developer Controlled Package upgrade

We have been using the 2nd Generation Developer Controlled Packages (https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_dev2gp_plan_pkg_types_locked_unlocked.htm) in ...
0 votes
2 answers
340 views

How to disable a design:attribute so that user can only read the default value

This may take away purpose of designer attributes, but still I want to ask , How can a design:attribute be disabled so that user can only read the default value. This is to make user aware that this ...
  • 2,500
2 votes
0 answers
704 views

How to create Multi-select picklist in .design class for configuring lightning component [duplicate]

*Note: I'm trying to implement "Multi-Select Picklist" in design source for configuring lightning component, Not a Picklist in design source for configuring lightning component. For reference I ...
5 votes
1 answer
2k views

Dynamic Lightning Input Component?

I have a custom Lightning component which is a simple input form with the Contact fields(required). Obviously the controller class has an insert statement for the Contact sObject. Is there a way I ...
  • 1,490
1 vote
0 answers
211 views

How do I update an attribute label for a custom community content layout theme?

When creating a custom component you often add attributes. You can then specify a label for these attributes that shows up in the community builder by specifying it in the components design resource. ...
  • 628
1 vote
2 answers
8k views

How to get and set lightning attributes

I want to get and set 'disabled' and 'value' attributes of this lightning component: <lightning:select aura:id="myId" name="select" label="Valore" required="true" onchange="{!c.tipoChanged}" value=...
  • 135
4 votes
2 answers
1k views

Is it possible to use dynamic label for <design:attribute>

So what I need is to display some checkboxes with dynamic labels for some component attributes in the app builder(when you add a component to a flexipage you can configure some attributes). First I ...
  • 2,101
7 votes
1 answer
4k views

How to use design:attributes with aura:attribute of type string[]

I have an aura:attribute of type string[] and I want that user should be able to populate the values in that string array through app builder. For this I am using design:attributes as; Component: &...
  • 2,500
21 votes
4 answers
27k views

Error when trying to remove a lightning component's <design:attribute>

Scenario: I have a lightning component for my Save and Submit buttons. I thought I will need to add a design attribute and made the following changes: Design <design:component> <design:...
  • 407