Plugin Mode

Addition and subtraction of dates

Summary

Click the button to add or subtract a number of days or months to a specified date field’s value, and save the result into another field.

Smartphone support

This plugin supports smartphones.

How to use

Choose the source date, the amount to add or subtract, and the destination field. Set the button label and pages where it will appear so users can calculate dates when needed.

When it runs

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

  • When you open a record creation or edit page
  • When you click a button added by this plugin
  • When you open a record details page
  • When you open a record list page

Click the button added by this customization to run the operation.

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.

Page

Please select which screen you would like to perform the calculations on.

Available options:

  • Record Edit/Create Page
  • Record Detail Page

Initial value: Record Edit/Create Page

Button Label

Please enter the label to be placed on the button.

Initial value: 日付の加減算

Date Field

Please select the date field to be included in the calculation.

The following field types can be selected.

  • Date
  • Date and time

Fields inside tables cannot be selected.

Calculated

Choose how to add to or subtract from the date.

Available options:

  • X Days After
  • X Weeks After
  • X Months After
  • First of Month After X Months
  • End of Month After X Months
  • X Years After

Addition value

Please enter the number to add. If you want to subtract, please enter a negative value.

Initial value: 1

Set destination field

Please select the field where you want to set the calculation result.

The following field types can be selected.

  • Text
  • Text area
  • Rich text
  • Date
  • Date and time

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

Actions

Conditions