Action Framework: Create new row defaults can only add single value to multipicklist field

  • 1
  • Problem
  • Updated 4 years ago
  • Solved
Is there a way we can add multiple values to a multiselect picklist using the action framework's create new row default properties? Seems like my only options are 'single specified value' and 'none'.

Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb

Posted 4 years ago

  • 1
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Can I get around this in the XML?
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Like this?
<default type="fieldvalue" field="STD_Test_Method__c" enclosevalueinquotes="true">
     <values>
          <value="Blood Test: Lab send-off" />
          <value="Visual Inspection" />
     </values>
</default>
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,014 Points 20k badge 2x thumb
There is a way to do this, but the <values> node approach you suggested does not currently work, although it makes sense and will probably work in the future if we implement support for Multiple Specified Values for Create new row defaults.

For Multi-Select Picklist fields, you can set multiple default values by using "Content: Single specified value" and then for "Value", separate the desired values with a semicolon, like this:

Blood Test: Lab send-off;Visual Inspection

Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Sweet. Thanks, Zach