Open Field Group

Open Field Group

Opens and closes Field Groups.

Function

kintone.app.record.setGroupFieldOpen(fieldCode, isOpen)

Parameters

PARAMETER VALUE REQUIRED DESCRIPTION
fieldCode String Yes The field code of the Field Group.
isOpen Integer Yes Set "true" to open the Field Group.
Set "false" to close the Field Group.

Response

None

 

Sample Request

kintone.events.on('app.record.create.change.<single_choice_field>', function(e) {
  var record = e.record;
  var radioButtonValue = record.<single_choice_field>.value;

  var group1 = radioButtonValue === 'sample1';
  var group2 = radioButtonValue === 'sample2';
  var group3 = radioButtonValue === 'sample3';

  kintone.app.record.setGroupFieldOpen('field_group_1', group1);
  kintone.app.record.setGroupFieldOpen('field_group_2', group2);
  kintone.app.record.setGroupFieldOpen('field_group_3', group3);
});

Limitations

  • This API can be used on Desktops only.
  • This API can be used on the Record Create, Record Edit and the Record Details page.
  • This API cannot be used on apps attached to bodies of Spaces/Threads/Announcements.
Was this article helpful?
0 out of 0 found this helpful
Comments
Please sign in to leave a comment.