I have a DocType named ‘Test Main’ and in this, I have a field ‘Year’. I want to have two options for that field - the present year and the year before.
Any way to code this up?
I have a DocType named ‘Test Main’ and in this, I have a field ‘Year’. I want to have two options for that field - the present year and the year before.
Any way to code this up?
This will do only for the year 2017.
Is there any way that when the date is the 1st of any year, this field gets automatically updated and shows the present year and the year before?