Hello,
I have a Quick Create Form for an entity called `Cashflow` that launches from a Subgrid of an entity called 'Backlog' to create multiple cashflow records related to that backlog. The Cashflow's Quick Create Form contains 3 fields: Backlog Name, Backlog Amount, and Year (dropdown choice field of a list of years).
Once the Cashflow's Quick Create Form loads, if there are no cashflow records related to the backlog in the subgrid, the Year field would be empty for the user to enter the first record. (Image Example below):
Else if there are related records, I'm trying to have the Year Field to have as preselected the year after the latest in the subgrid. Example In the image below, Cashflow 1 is for year 2020, Cashflow 2 is for the year 2021, and if I create a new cashflow (from subgrid quick create) Cashflow 3 should be for the year 2022. Is there a way to accomplish this with JS?