Unable to disable fields at page load if the Advanced Lookup plugin is used

Hi,
I’m trying to disable certain fields when an app is loaded with javascript.  It works if the advanced lookup plugin is disabled and fails if the advanced lookup plugin is enabled.  Am I missing something?  I also tried the “Conditional Display” plugin but it fails for other reasons.

Steps to reproduce:

  1. Create an app with one text field with field code: “Text”
  2. Add the test.js code below to the app.
  3. Create a new record in the app.  Confirm that the text field is disabled as expected.
  4. Add the Kintone plugin: “Advanced Lookup” from here.
  5. Create a new record in the app.  The text field does not get disabled and this error is displayed: Unexpected token u in JSON at position 0

Cheers,
Jeff

test.js

(function() {
    "use strict";
    var recordLoadedEvents = ['app.record.edit.show','app.record.create.show']
    kintone.events.on(recordLoadedEvents, function(event){
        event.record.Text.disabled = true;
        return event;
    });
})();

Hello Jeff Gilbert,

Thank you for posting about this issue with the Advanced lookup Plug-in!

 

Since this error is specifically towards the Plug-ins provided as Native Kintone Plug-in, please get in touch with the Kintone Support Team.

 

They will be able to assist you regarding the Advanced Lookup and Conditional Display Plug-ins.

 

Thank you for your time,

Genji

Will do, Thanks