Rendring picklist as MultiPicklist

  • 1
  • Question
  • Updated 3 years ago
  • Answered
In continuation with this post: 
https://community.skuidify.com/skuid/topics/is-it-possible-to-render-a-picklist-field-in-a-field-edi...

Can I display this rendered Multiselect picklist in 'Checkboxes' format? Like the same way Skuid displays for multiselect picklist when we select 'checkboxes' as field renderer.
Photo of TJ

TJ

  • 952 Points 500 badge 2x thumb

Posted 3 years ago

  • 1
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,056 Points 20k badge 2x thumb
Yes, use this Snippet:

var field = arguments[0],
   value = skuid.utils.decodeHTML(arguments[1]);
field.options.type = "CHECKBOXES";
skuid.ui.fieldRenderers.MULTIPICKLIST[field.mode](field,value);
field.options.type = "CUSTOM";
Photo of TJ

TJ

  • 952 Points 500 badge 2x thumb
It worked, thanks!