how to add menu in record and move from one to another menu

2 followers Follow
Avatar
Rohith Vallabhaneni

lets say i have added 4 buttons next to the header what do i need to do when i click on that button it should display different data in that menu tab.

Suppose if i click on education details it should display degree related info.



0

1 comment

Avatar
Junko Werner 0 votes
Hi Rohith,
 
If you want to show specific fields upon clicking a button, you might want to use "hide/show fields" API. And every time button click event is called, hide/show fields is changed on record details page. Here is an example of the code.
 
 educationDetailsButton.onclick = function() { 
     // hide/show fields API

      kintone.app.record.setFieldShown("fieldcode","true/false")
 };   
 
0

Please sign in to leave a comment.