Set read only field of a child entity through java script RRS feed

  • Question

  • Hi!

    I've a CRM entity (father entity) with a relation 1:N to the (child entity).

    I know how to set a read-only field with java script, but I can't do it depending on the status of the father.

    How can I set read-only field of a child depending on the statuscode of the father entity with javascript?

    Thanks in advance!

    Thursday, November 14, 2013 11:06 AM

All replies

  • I think the best way that you can do this is using the REST endpoint. You will have a guid of the parent record stored on the child, you can then get the status of the parent record using REST and, based on the result, set your field to read-only or not.
    • Proposed as answer by Jon_Evans Thursday, November 14, 2013 11:28 AM
    Thursday, November 14, 2013 11:28 AM