iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
💬

Creating a User Selection Dialog for All Users with Customine

に公開

Article Overview

In Customine, there is an "Action" called "Display a dialog to select a user from a list." Since I needed to display all users in this dialog this time, I'm documenting how I achieved it as a memo.

If you would like to implement the content of this article in your own company, please feel free to contact us via the kintone Spot Development Free Consultation Form.

Reference Sites

I achieved this by combining the following two articles:

Display a dialog to select a user from a list

Is it possible to extract all currently active users and set them in a user selection field?

What I Want to Achieve

I want to open a selection dialog containing all users when the user selection field is clicked.

kintone App Screen
On the screen, we place two fields: Group Selection (used to extract users) and User Selection (the destination for assigning the dialog's selection result).

Flow

  1. When the button is clicked, assign "everyone" to the Group Selection field.

  1. Get users belonging to the group. At this point, all users belonging to the "everyone" group are retrieved.

  1. Display a dialog to select a user from a list.

Here, for the "User list for options," specify the action that retrieved all users previously.

This will display a dialog like the one shown below.

  1. After that, simply assign the selected list to the User Selection field.

Summary

It was achieved without any problems. While there is a method to set the initial value of the Group Selection field to "everyone" on the kintone side, you might want to narrow down the options with other groups instead of "everyone" as you continue operations, so this time I specified it from Customine.
(Note: For a more robust implementation, you should clear the contents of the group field once before assigning "everyone").

I hope this is helpful.

Click here for inquiries via the form: kintone Spot Development Free Consultation Form

Discussion