One Skuid for View and New Record

Pat VachonPat Vachon ๐Ÿ’Ž๐Ÿ’Ž๐Ÿ’Ž
edited June 25, 2020 in Ideas



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]);    }
1
1 votes

Awaiting Review ยท Last Updated

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!