Linking a date and time field to an alternative field RRS feed

  • Question

  • I am creating new organization fields. I have created a yes no field and want to have a visible date and time field that links automatically to the yes no field with the date that the change in the yes no was made. Can anybody tell me wehat option I would need to click/ check or does it lay deeper in the code?

    Thanks in advance.

    Wednesday, November 13, 2013 11:37 AM

All replies

  • You could use some JavaScript like this on the OnChange event of the boolean field:

    function OnChange() {
        if (Xrm.Page.getAttribute("new_bool").getValue() === true) {
            Xrm.Page.getAttribute("new_date").setValue(new Date());
        } else {

    Jason Lattimer
    My Blog -  Follow me on Twitter -  LinkedIn

    Wednesday, November 13, 2013 2:08 PM