Hi,
I am trying to bring back the day of a pickup using the date field. I.e 10/02/15 is 'Tuesday'.
So far i've created a JS web resource called dayofpickup with the code (i realise its not complete yet but i want to show the date in that field before I grab the day.
function GetDate("sourcename")
{
return Xrm.Page.data.entity.attributes.get("sourcename").getValue();
}
Added it to the pickup form as a new field called Day.
Added the JS to the onload event on the form properties but date is not flowing through to the field.
Can anyone provide advice on why the field may not be currently populating with the date and how I can adjust my JScript to show the day of pickup?
Thanks Jon
*This post is locked for comments
I have the same question (0)