Skip to main content

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

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 = argumentse0], $ = skuid.$;<br>var entries = s];<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;