How to increase startbilling date with value request start billing date?
Thanks,
*This post is locked for comments
How to increase startbilling date with value request start billing date?
Thanks,
*This post is locked for comments
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
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,214 Most Valuable Professional
nmaenpaa 101,156