kintone developer network

Tutorial

Follow

In the Tips section, we introduce samples that use kintone's API to build customizations that you can apply to your apps.
Be sure to read through the JavaScript Coding Guidelines before you start using these samples for your own apps.

As a starter, let's start off with a quick customization. Open up a local text editor, and type in the following code.

(function () {
	"use strict";
	window.alert('Hello kintone');
})();

Save the file, and name it hello.js. Make sure to place the .js at the end, and also save in UTF-8 encoding.

Now, log into your kintone, pick an app that you've made and go to it's settings.


Click on the "Advanced Settings" section, "JavaScript and CSS Customization" and then on the "Add File" button under "Upload JavaScript for PC". Choose the hello.js file that you just made.


Once done, click on Save, and then on Apply Changes.
Now every time you open this app, an alert message will pop up saying "Hello kintone".


Great! We've managed to implement a JavaScript file into a kintone app!
Of course, most people won't find it useful having an alert message opening up every time they open the app.

The kintone API document introduces Events, that tells the code to start functioning at a particular timing - for example, to only show a message when you're editing a record. Other documents include retrieving values that are inside the records, retrieving user information and so on.


The goal of our tips is to help you understand the kintone API, and to help you be able to create your own customized apps!

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request
Comments