How do I use a snippet to only show certain pick list options?

  • 1
  • Question
  • Updated 1 year ago
  • Answered
I have a status field that's a picklist and I'm trying to use a skuid snippet to only show certain picklist options. I do not want to change the picklist options directly in SDC since we need that field to have show those statuses  on a different page. 
Photo of Jamie Crawford

Jamie Crawford

  • 486 Points 250 badge 2x thumb

Posted 1 year ago

  • 1
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,674 Points 20k badge 2x thumb
Photo of Shmuel Kamensky

Shmuel Kamensky, Champion

  • 4,328 Points 4k badge 2x thumb
Oh, nice. I was going to say you should consider using record types. But keep in mind the considerations mentioned in this post. 

https://community.skuid.com/skuid/topics/picklist_rendering_and_record_types

Additionally, a solution I didn't see mentioned is another declarative one.

You can create a UI only picklist field that only displays the values you want. Display this field to the user. As a model action, on-update of that field, update the value of the actual SF field on your model so that when saves occur, the value is actually saved to the server. This solution requires maintaining the picklist values in the UI only field, but then, so do the snippet solutions.