Skip to main content
12 votes
Accepted

lightning:radioGroup is allowing multi-select

You've forgotten a required attribute. The radioGroup is grounded in HTML's <input type="radio" />, which uses a "name" attribute to determine groups. If you forget to specify the name, the ...
sfdcfox's user avatar
  • 497k
5 votes
Accepted

formula field to display multi select picklist (selected values)

To update a contact object formula field based on the values from the account object multi-select picklist . In contact formula field write down as IF(INCLUDES(Account.Multi_select__c,"value"),"value;...
SFDC's user avatar
  • 461
5 votes

SELECT opportunities AND contacts AND tasks

The part of your query where you're saying (Select Id, WhoId FROM Tasks WHERE IsClosed = false) is known as a Left Outer Join, or a Parent-Child Subquery. A semi-join is similar, but different (a semi-...
Derek F's user avatar
  • 62.8k
4 votes

Creating dependency in multi picklist

I think you've run into a documented limitation of multi-select picklists. Multi-select picklists can be dependent picklists but not controlling fields. That would be why you can't use the multi-...
crmprogdev's user avatar
4 votes
Accepted

How to Find the Count of Multi-Select Picklist?

Is there any direct methods to check the count instead of List and Split method using ';' Nope, splitting by semicolon and calling size() on the resulting list is pretty much it. There are probably ...
Derek F's user avatar
  • 62.8k
4 votes
Accepted

Data in List<String> to be assigned to multiselect picklist in apex

Just join the values with a semi-colon: record.MultiSelectField__c = String.join(selectedValues,';'); Alternatively, you might consider binding the multi-select list directly to the field: <apex:...
sfdcfox's user avatar
  • 497k
4 votes
Accepted

How do we call these layouts?

These are not compact layouts. They are action layouts, which may be associated with either global actions or with object-specific actions. Global Actions are available in Setup. Object-specific ...
David Reed's user avatar
  • 93.2k
4 votes
Accepted

Add value to multi-select picklist with batch class

In a nutshell, DML on one object does not cause changes made to related data to be saved. You need to be performing DML on a Placement__c (I'm assuming that's what the SObject name is) record, not the ...
Derek F's user avatar
  • 62.8k
4 votes
Accepted

Compare values in multiselect picklist

Use sets. To determine what has been added, removed, or unchanged, you can use three sets, and use the various set operations (addAll, retainAll, and removeAll) to quickly determine what changes have ...
sfdcfox's user avatar
  • 497k
3 votes

How to Find the Count of Multi-Select Picklist?

If you don't have much values in your multi-picklist you could do it with a formula field(Number) : IF(INCLUDES(Languages_Known__c,"ENGLISH"), 1 , 0) + IF(INCLUDES(Languages_Known__c,"FRENCH"), 1 , ...
brovasi's user avatar
  • 5,685
3 votes

Changing Semicolon from Multi-Select Picklist values to a Comma

You can only use the following functions with Multi-Select Picklist fields: INCLUDES ISBLANK ISNULL ISCHANGED (Only in assignment rules, validation rules, workflow field updates, and ...
Adrian Larson's user avatar
  • 151k
3 votes

How to show multi select picklist ui in visualforce page?

There isn't an apex:... tag that presents side by side select lists to allow easy mult-select. So if that is what you want, I suggest you use this Salesforce authored open source Visualforce-...
Keith C's user avatar
  • 136k
3 votes

How to use multi select in App Builder to assign the value in attribute using design:component?

This is not possible so far. You can only have attributes of type Integer, String, or Boolean as described here. You can have dynamic picklist values, but not multi-picklist. Have a look here. You ...
Fabien Taillon's user avatar
3 votes
Accepted

Filtering Einstein Analytics dashboard by multiselect picklist value

This was a bug which has been patched. Multiselects are now supported in embedded filters without hacky workarounds.
Pete Lyons's user avatar
3 votes

How do I use a custom object as the source for a multi-select picklist

Is there a way to pull the multi-select picklist values directly from the custom object? No, there is not. Or, is there a way to automatically update the picklist from the custom object? We ...
David Reed's user avatar
  • 93.2k
3 votes

how to create dependent picklist in vf page

You just need to have variables or methods to calculate what the values should be. Here's an example that should work in any org. You'll want to read more about apex:actionSupport in the documentation....
sfdcfox's user avatar
  • 497k
3 votes
Accepted

Lightning:dualListbox Style Not Working As Expected

Your comment says you are trying to use a list of strings. The reason you're not seeing any values is because you should be using objects that contain a value and a label property which your strings ...
gNerb's user avatar
  • 9,508
3 votes
Accepted

invalid operator on multipicklist field

You cannot use LIKE operator with Multi-select picklist, instead you need to use INCLUDES operator in your case. Checkout the documentation for details.
Hengky Djapar's user avatar
3 votes

How to add the 'AND' condition in dynamic query for multi select picklists?

It'd be easier to just use a binding: string value = String.join(newMultiSelectList, ';'); String queryString = 'select id, Audience_Tags__c FROM Audience__c WHERE Audience_Tags__c INCLUDES (:value)';...
sfdcfox's user avatar
  • 497k
3 votes

Validation rule that includes multi picklist field

Validation rule trigger when the result is true, so you essentially have to list off every possible value: ISPICKVAL(Type,"Customer") && ISPICKVAL(Stage__c,"On Going") &...
sfdcfox's user avatar
  • 497k
3 votes

Querying on Multi-Select Picklist in Get Records in Flow

After similar frustration, I've gotten this to work by using the new Collection Filter Element, which apparently supports Contains for multi-select picklists (even though the Get Element does not). ...
Lauren LaMonte's user avatar
2 votes

SOQL Includes with Field Value?

Tried the solution mentioned above, but that din't work well for me. Modified that to work, thought it be shared, here: Public List<String> vals {get;set;} Public string selectedVal{get;set;...
Khushboo Dua's user avatar
2 votes
Accepted

Compile Error: Didn't understand relationship 'opportunity' in field path

This code is not valid: AND ( account.opportunity.capability__c includes The subquery returns a List of Opportunities related to the account. You will have to Iterate over the list of opportunities ...
Eric's user avatar
  • 54.2k
2 votes
Accepted

replace Semi-colon into comma in repeat

Use SUBSTITUTE(text, old_text, new_text) function to replace semi colon with comma. In your case, replace this line <td> {!fetch.Qualification__c} </td> With this line to change the ...
Saroj Bera's user avatar
  • 14.8k
2 votes
Accepted

problem merge record in multiselect picklist in visualforce and apex class

public LIST<SelectOption> getallEmployee(){ LIST<HREMPINFO__c> empMember = [SELECT Id, Name, Full_Name__r.Name FROM HREMPINFO__c WHERE Id IN (...
Vickal's user avatar
  • 592
2 votes

How can I hide/show a text field based upon a multi-picklist value?

There are some basic errors in visualforce. Your page should look like this: <apex:page standardController="Contact"> <apex:form > <apex:detail /> <!-- bind ...
Ashwani's user avatar
  • 22.6k
2 votes

How to prioritize values in multi picklist

This is not possible out of the box. Of course there are other ways to do it, including complex logic in Visualforce and APEX. But also simpler ones. It all depends on your full set of requirements, ...
Guy Clairbois's user avatar
2 votes
Accepted

Validation rule on Picklist and Multipicklist

Note from the documentation on INCLUDES that the syntax is: INCLUDES(multiselect_picklist_field, text_literal) A text literal is a single explicit value such as "My Picklist Value". You can't ...
Adrian Larson's user avatar
  • 151k
2 votes
Accepted

Find out if a specific value has been selected ALONE in a multiselect picklist

You would have to check to see if it included each value like this which could be a problem depending on how many values you have. Also you would need to remember to update it each time you added ...
Eric's user avatar
  • 54.2k
2 votes

How to show multi select picklist ui in visualforce page?

If you are happy embedding a lightning component in your visualforce page, you can use my super snazzy draggable multicolpicklist. It's here on github Embed it in your page like this: <apex:page ...
Caspar Harmer's user avatar

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