Add days to date Formula

I have this formula which adds days from Date Field A: addDays($date_a_c,259) . It gives me a date calced off of Date A and puts it to Date Field B. I need a formula which does this, unless Date Field D has a date, in which it should calc from field D.

I cant seem to figure it out. Can I get some pointers to which formula to use there? My rough idea is something like this: addDays($date_a_c, or(addDays($date_d_c,259)) , but of course this doesnt work.

Parents Reply
  • Hi Alan,

    Thanks for the solution you provided in your last reply.

    I have a doubt regarding the default value for a single field in custom

    module.

    I have created two  fields, Field 1(integer type) and Field 2(integer

    type). i want to make sure that if user enters no value in the Field 2 and

    save the form then the value of Field 2 should be saved equal to the value

    of Field 1 entered by the user.

    if (Field2 == 0)

    then

    Field2 =  Field1 ;

    I  want to know that how we can do it from studio.

    On Thu, May 5, 2016 at 10:50 PM, Alan Beam <sugarcrm-public@jiveon.com>

Children