I'm trying to get my form to do what I ask but...
I'd like to get a 'Start Date' and 'End Date' to fill from the Start Date field, exactly one year apart. So far I can't get it to accomplish this, any ideas??
The other issue I created is that I'd like to add a 25% discount to a Sub total on my form but if I tell it to -25% it subtracts .25 cents.
help and thanks!
The following lines of code adds 1 year to DateTime1 field value
var targetDate= util.scand("yyyy-mm-dd",DateTimeField1.rawValue);
targetDate= new Date(targetDate.setFullYear(targetDate.getFullYear()+1));
The following formula subtracts 25% from the total amount
var afterDiscount = TotalAmount - (TotalAmount * (25 /100))
need more help!
thank you for the formulas, but I'm still new at creating forms and have no idea where to put this information!