creating feilds in the record

Nani16
Tera Contributor

How to Add the following fields to the record:

FIELD 1 : Year of applicability
Type : Select box / dropdown
Dropdown values : N-5 to N+5 (N being the current year)

Rules :The year of applicability will automatically fill the following fields :
- Service start date = January 1st of the selected year
- Service end date = December 31st of the selected year
These are field that will also be added considering the guides below

FIELD 2 : Planned start date
Type : Date
Rules : Automatically filled with January 1st of the selected year in the field ""Year of applicability"" but editable
The service start date can only be < or = to the Service end date

FIELD 3 : Planned end date
Type : Date
Rules : Automatically filled with December 31st of the selected year in the field ""Year of applicability"" but editable
The service end date can only be = or > to the Service start date

1 REPLY 1

Mark Manders
Mega Patron

Not sure what the question is. Create the 3 fields (two date fields, one choice field). Add the choices and use a client script to get the year and add the day/month to it to fill both other fields. 


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark