Skip to main content
Nintex Community Menu Bar

One Skuid for View and New Record

  • July 8, 2024
  • 2 replies
  • 5 views

Forum|alt.badge.img+20



var $ = skuid.$, field = arguments[0], hasChanged = field.model.changes[field.row.Id] && field.model.changes[field.row.Id][field.id]; switch(field.mode) { case 'read': if (field.row.Id.length >= 15 && !hasChanged) { skuid.ui.fieldRenderers[field.metadata.displaytype].read(field, arguments[1]); } else { skuid.ui.fieldRenderers[field.metadata.displaytype].edit(field, arguments[1]); } break; case 'readonly': skuid.ui.fieldRenderers[field.metadata.displaytype].read(field, arguments[1]); break; case 'edit': skuid.ui.fieldRenderers[field.metadata.displaytype].edit(field, arguments[1]); }
This topic has been closed for replies.

2 replies

Forum|alt.badge.img+20

This time with the right screen being recorded. 😉



Forum|alt.badge.img+11

Pat~

Thanks for sharing that snippet with the community 🙂

Karen