Plugin Mode

Limit Number of Selected Choices

Summary

Limit the number of choices that can be selected in checkboxes, multi-choice fields, and similar fields. You can choose whether this runs when you change a field value, when you save, or both.

Smartphone support

This plugin supports smartphones.

How to use

Select the field and set the minimum and maximum number of selections. You can provide separate messages for too few and too many selections.

When it runs

Depending on the settings, this customization runs at the following times. Any configured conditions are also evaluated.

  • Immediately before saving a record
  • When you edit and change a target field value

The page-display and field-change triggers exclude inline editing from the pencil icon on the list page.

Parameters

Enter or select a value for each setting unless it is marked optional.

Timing

Select when the action should occur (when editing, when saving).

Available options:

  • When Editing
  • When Saving

Initial value: When Editing, When Saving

Field

Please select the field you would like to check.

The following field types can be selected.

  • Check box
  • Multi-choice
  • User selection
  • Department selection
  • Group selection

Minimum number of selections

Specify the minimum number of choices the user must select.

Enter an integer of 0 or greater.

Initial value: 0

Maximum number of selections

Specify the maximum number of choices the user may select. This setting is optional.

Enter an integer of 1 or greater.

Lower limit error message

Please enter the error message to display if the number of selected items does not meet the minimum requirement.

Initial value: 選択が足りません。

Upper limit error message

Please enter the error message that will appear if the selection exceeds the limit.

Initial value: 選択が多すぎます。

Items subject to value checks when edited

When editing, if there are fields you want to check in the “Fields to Check” section, specify them here. You can select more than one field. This setting is optional.

The following field types cannot be selected.

  • Calculated
  • Rich text
  • Attachment
  • Lookup (text)
  • Lookup (number)
  • Record number
  • Record ID
  • Revision
  • Created by
  • Created datetime
  • Updated by
  • Updated datetime
  • Categories
  • Status
  • Assignee
  • Table
  • Related records
  • Field group
  • Label
  • Blank space
  • Border

Condition

If conditions are set, the numerical check will be performed only when those conditions are met. Leave this unset to apply the plugin without this filter. You can configure up to 5 entries.

The following actions and conditions are useful when building similar behavior in customization mode.

Actions

Conditions