
How to increase startbilling date with value request start billing date?
Thanks,
*This post is locked for comments
I have the same question (0)Hi Ferdiansah ,
you need to insert a javascript on entity form with the following code (replace fake attribute name with your attribute names).
Each time the date or the "add days" fields change, the script are executed:
function OnLoad()
{
Xrm.Page.getAttribute('new_datefrom').addOnChange(DateOrDaysOnChange);
Xrm.Page.getAttribute('new_adddays').addOnChange(DateOrDaysOnChange);
}
function DateOrDaysOnChange()
{
var datefrom = Xrm.Page.getAttribute('new_datefrom').getValue();
var adddays = Xrm.Page.getAttribute('new_adddays').getValue();
var newdate = new Date(datefrom);
newdate.setDate(newdate.getDate() + adddays);
Xrm.Page.getAttribute('new_dateto').setValue(newdate);
}
Please let me know if you solve.
If you found the answer helpful, please mark as Verified 
Join my network on LinkedIn
Follow me on Twitter 
Thank You & Best Regards
Francesco Picchi
Microsoft Dynamics CRM Consultant, Bologna+Milano, ITALY
Independent Contractor