Skip to main content
Nintex Community Menu Bar
Question

Custom reference field renderer

  • July 10, 2024
  • 4 replies
  • 7 views

Forum|alt.badge.img+8

I’m looking to custom render a lookup field so that I can add an option before all choices if there is no match. Using input.autocomplete({source:…, select:…}) and source function seems to work partially. Can you provide a simple example to show like an array of static values in the custom renderer for a lookup field? Simple value and label pair do not seem to display the dropdown values properly. Thanks!

4 replies

Forum|alt.badge.img+4
  • July 10, 2024

Hi Jili,

Have you already tried the steps in this documentation: https://docs.skuid.com/latest/en/skuid/api/skuid_ui.html#skuid-ui-field-renderers  ?
Search for function : PICKLIST() , this should be the part you need for this. 

I hope this helps,

Janick


Forum|alt.badge.img+2

You can add all of the values to the source like this:
{
label: “”,
value: “”
}

You can also add custom fields on here if you need more information:
{
label: “The human readable version”,
value: “12346”,
parentId: “12345”,
favoriteColor: “literally anything”,
sourceObj: {
name: “The human readable version”
id: “12346”,
parentid: “12345”,
fav_color: “literally anything”
}
}


Forum|alt.badge.img+8
  • Author
  • July 10, 2024

I was hopeful for a sec. Label/value pair does not work for lookup field though. Thanks.


Forum|alt.badge.img+2

You can extend the select function for autocomplete to assign the ID