New Record - Filter Available Record Types?

Update: I am working with the contents of this post: https://community.skuid.com/t/how-do-i-render-custom-picklist-values

I created a simple snippet but it is not rendering a picklist, it creates a field that requires I type in the name:

var field = arguments[0], value = skuid.utils.decodeHTML(arguments[1]); if (field.mode == 'edit') { var picklistEntries = field.metadata.picklistEntries; picklistEntries.push( { value: 'Tech Support', label: 'Tech Support', defaultValue: true, active: true }, { value: 'Accounting', label: 'Accounting', defaultValue: false, active: true } ); } skuid.ui.fieldRenderers[field.metadata.displaytype][field.mode](field,value);
  1. What do I need to do to make the page render a picklist rather than a text field?
    2) Since this is the RecordTypeID field do I need to pass in the RecordTypeID?  Or should I use the RecordType.Name field?