New Option +21 Month in Date field

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dimendia
    Junior Member
    • Dec 2017
    • 13

    New Option +21 Month in Date field

    Hello,

    I can not find the setting to fill a field automatically. Here in the example I would like that the date field +21 months is filled automatically. I do not find the setting to be an extra datetime \ addMonths function. maximum is 1 year but i need + 21 Month
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    Hello
    Select +11 months, save, open custom/Espo/Custom/Resources/metadata/entityDefs/{YourEntity}.json, replace 11 with 21 in your field default option

    Comment

    • dimendia
      Junior Member
      • Dec 2017
      • 13

      #3
      ok and the same with 2 years ?

      Comment

      • tanya
        Senior Member
        • Jun 2014
        • 4308

        #4
        yes
        javascript: return this.dateTime.getDateShiftedFromToday(2, 'years');

        Comment

        • dimendia
          Junior Member
          • Dec 2017
          • 13

          #5
          ok Thanks :-)

          Comment

          Working...