I am using Skuid in Salesforce and I created Table component which includes the RecordTypeId field. I have that field’s Field Renderer set to Custom and have it running a custom snippet.
When the page loads, RecordTypeId appears as blank for the first record. It renders correctly for all the other list items. When I go into Edit mode for that first record, the field is rendered correctly.
I added some logging lines to show when the function executes and I noticed that it only runs n-1 times where n is the number of list items.
What am I missing? This is my first time using custom code in Skuid. Thanks in advance!
Here is the beginning of the snippet for reference:
console.log( 'Entering code' );
var params = argumentsn0],<br>$ = skuid.$;
( function( skuid, $ ){<br> var snippet = skuid.snippet,<br> ui = skuid.ui;
snippet.registerSnippet( 'GetAvailableRecordTypes', function(){<br> console.log( 'Entering function' );<br> var field = argumentsn0],<br> value = argumentsn1],<br> fieldName = field.id,<br> model = field.model,<br> row = field.row;
…