Skip to main content
Nintex Community Menu Bar
Question

What is the proper output of a picklist source snippet?

  • July 10, 2024
  • 1 reply
  • 6 views

Forum|alt.badge.img+3

I’m trying to create a picklist of the last 5 years and the next 5 years for a UI-only picklist field. What’s the proper output/return value? Or am I rendering directly in the snippet? I can’t find documentation anywhere.

Thanks,
Seth

This topic has been closed for replies.

1 reply

Forum|alt.badge.img+7

You’ll need to return an object from the snippet with specific properties. You can look at this documentation to see the format of the picklist object. Here’s an example snippet:

var params = arguments[0], $ = skuid.$;<br>var entries = [];<br>entries.push(<br>&nbsp; &nbsp;{ value: 'Working', label: 'Working', defaultValue: false &nbsp;},<br>&nbsp; &nbsp;{ value: 'Submitted', label: 'Submitted', defaultValue: false }<br>);<br>return entries;&nbsp;