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
  • 487k
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
  • 60.9k
4 votes

pass html multiselect picklist value to controller

Solution Page <apex:page controller="MutiselectPicklistTest"> <apex:form> <apex:pageBlock> <input type="button" onclick="checkselected();" value="click" ...
Ratan Paul's user avatar
  • 22.6k
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
  • 40.9k
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
  • 60.9k
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
  • 487k
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
  • 92.6k
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
  • 60.9k
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
  • 150k
3 votes
Accepted

String method contains giving error on visual force page

Replace : <apex:outputPanel rendered="{!IF(CONTAINS({!opp.Optional_Transport__c}, "Train "),True, False)}" > by : <apex:outputPanel rendered="{!CONTAINS(opp.Optional_Transport__c, 'Train '...
SF_user's user avatar
  • 3,616
3 votes

How to select all values of multiselect picklist selected by defaullt on visual force page

Let's start with two utility methods to return a list of strings corresponding to any Picklist-type Sobject.Fldname: public static List<String> getPickListValues(String sObjNameDotFldName) { ...
cropredy's user avatar
  • 70.9k
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,645
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
  • 92.6k
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
  • 487k
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,471
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
  • 487k
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
  • 487k
2 votes
Accepted

Convert Recordtype Name into a Text Literal for a Multiselect formula?

Seems like there is no way to convert Text into Text Literal. Idea link : INCLUDES() should accept TEXT() as well as text literals
Yuval V's user avatar
  • 36
2 votes
Accepted

pass html multiselect picklist value to controller

In your code this.value; only pass the current selected value. I have added a JS function getSelectValues to assign all selected values to the hidden variable. Also you option values has semicolon ...
Saroj Bera's user avatar
  • 14.7k
2 votes

pass html multiselect picklist value to controller

You don't explain why you can't use apex:selectList. Using that would make for a cleaner (and easier to test) solution and you can still tweak the styling via the style and styleClass attributes: <...
Keith C's user avatar
  • 136k
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

String method contains giving error on visual force page

You can't use Apex methods in Visualforce markup. You are also using unescaped double quotes in your second approach. Change it to: <apex:outputPanel rendered="{!CONTAINS(opp.Optional_Transport__c,...
Adrian Larson's user avatar
  • 150k
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.1k
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
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.7k

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