once click to the inactive checkbox is true after I want to make read-only field otherwise field mode is read inline edit mode.
I have used some javascript for this functionality but read-only is work but when I uncheck inactive field than not able to edit.
var field = argumentsn0],Â
value = argumentse1];Â
//field.mode = ‘read’;Â
var $ = skuid.$;
var modelWF = skuid.model.getModel(‘Account’);
  var modelWFSize = skuid.model.getModel(‘Account’).data.length;
  var rowE = modelWF.getFirstRow();
  var checkInactive= rowE.Inactive__c;
  Â
  Â
  if(modelWFSize >0 && checkInactive == true){
    field.mode = ‘readonly’;Â
    console.log(‘====CHECKTRUE ‘+checkInactive);
    var renderers = skuid.ui.fieldRenderers;Â
    var dt = field.metadata.displaytype;Â
    var r = rendererstdt];Â
    if (!r) r = renderers.TEXT;Â
    r.readonly(field,value);
  }
  if(modelWFSize >0 && checkInactive == false){
    console.log(’====CHECKFALSE: ‘+checkInactive);
    field.mode = ‘read’;
    var renderers = skuid.ui.fieldRenderers;Â
    var dt = field.metadata.displaytype;Â
    var r = renderersÂdt];Â
    if (!r) r = renderers.TEXT;Â
    r.read(field,value);
    //console.log($(’.nx-basicfieldeditor:visible’).length);
    //var fieldeditor = $(‘.nx-basicfieldeditor:visible’).data(‘object’);
    //fieldeditor.mode = ‘read’Â
  }
  Â
Page 1 / 1
I do this by putting the field on the page twice, once in inline edit mode, the 2nd time in read only mode. I then conditionally render the correct field based on your checkbox.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.