Adding days to initial date field and outputting it on another date field?

  • forexnakedtrading
    Asked on April 25, 2015 at 12:10 AM

    I want to make auto calculation date +30 day from activation date

    this is my screenshot : http://prntscr.com/6xv4ra

  • Charlie
    Replied on April 25, 2015 at 5:29 AM

    Hi,

    Upon checking your form, I see that you are using the form calculation widget, you can actually achieve what you want by using the default date and using conditional logic to update it. Here's what I did.

    1. Replace the "Expiration Date" with a default date field. Make sure that the date format are the same, in this case its ddmmyyyy. Click "Conditions".

    Adding days to initial date field and outputting it on another date field? Image 1 Screenshot 40

    2. In the conditions wizard, choose "Update a form field value".

    Adding days to initial date field and outputting it on another date field? Image 2 Screenshot 51

    3. From here, I added a rule that when the activate date is filled the following action will initiate, here you can just add the activation date + 30 and output it on the expiration date field.

    Adding days to initial date field and outputting it on another date field? Image 3 Screenshot 62

     

    That should work. Thank you.