Skip to main content
Nintex Community Menu Bar
Question

Render Recordtype Field as Text, not Url on in Read mode

  • July 9, 2024
  • 4 replies
  • 19 views

Forum|alt.badge.img+3

Is it possible to add a recordtype field (to a table) such that in edit mode a user can select the recordtype, but in view mode it renders as text instead of Url. Right now when I add recordtypeId it renders as Url to the recordtype object which when clicked takes the user to “Insufficient Privileges” page.

This topic has been closed for replies.

4 replies

annajosephine
Nintex Employee
Forum|alt.badge.img+18

Hi Andrey, this custom field renderer should work (I got it from Ben’s reply in this topic.) In the Resources tab, add this Javascript as an inline snippet: var field = arguments[0], value = arguments[1]; if (field.mode === ‘read’) { field.element.append(skuid.$(‘’).addClass(‘nx-fieldtext’).text(field.model.getFieldValue(field.row,skuid.utils.getFieldReference(field.id,field.metadata)))); } else { skuid.ui.fieldRenderers[field.metadata.displaytype]field.mode; } Then, for your RecordTypeId choose Custom as the Field Renderer and then enter whatever you named your snippet. Let me know how this works for you!


Forum|alt.badge.img+3
  • Author
  • July 9, 2024

Thanks Anna, This worked for me. However, there is one side-effect. With this custom renderer, the edit mode is Auto-Complete. Ideally, in this case it should be “picklist”. What should I add to the snippet to render the field as picklist?


Forum|alt.badge.img+8

Hi Andrey, Add this line to the beginning of the else portion of the snippet.

field.options.type = 'REFPICK'; 

Forum|alt.badge.img+3
  • Author
  • July 9, 2024

Perfect! Thanks again.