How to set limit to date picker to only a month after start date

Confluence User - 17 Jul, 2019

Hi Experts,

Is there any way to set limit to date picker to only a month after start date. Let say 1/7/2019 is the start date. So user can only choose any date between 1/7/2019 to 31/7/2019 only

datepicker;limit;date

2


18 Jul, 2019
confluenceUser
confluenceUser

Hi

Attached is a small demo app that give you an example on how to validate the end date where end date + 1 month, using a hidden field to store the (one month from today) date via a default value hash variable "#date.MONTH+1.yyyy-MM-dd#". (See Hash Variable#DateHashVariable ).

This is set via the Design Form > End date > Validation : End Date Field ID = oneMonthFromToday (which is the hidden field that will store the date one month from today).

I guess you will get a better idea when you run this app and view the form properties.

APP_44401248_date_one_month_val.jwa

22 Nov, 2022
confluenceUser
confluenceUser

Hi Matthew King what about if the interval not fixed. means the later date can only be selected as long as its in the same month of the start date?

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print