locked
CRM 2013 Business Rules updating read only fields RRS feed

  • Question

  • Hi Guys

    Working with a customer who want to use Business Rules only and not use JavaScript so pushing the rules to the max here.  So I have a BR that updates a field based on 2 other fields e.g. field 3 = field 1 * field 2.  Problem I have is that field 3 is a read only field and even though the field updates on the form, when it is saved the field is not submitted.  Obviously with JavaScript I would use the ForceSubmit option however can't see we have this for BR.  Has anyone got a workaround for this or will I need to use JavaScript?

    Thanks
    Sukh


    • Edited by Sukh Gill Wednesday, June 11, 2014 8:18 AM
    Wednesday, June 11, 2014 8:09 AM

Answers

  • OK think I have a solution for this.  The workaround is to add the locked field twice on the form.  Make 1 instance of the field 'read only' and 'visible' and then make the 2nd instance of the field NOT 'read only' and NOT 'visible' on the form.  then when the Business Rules fire it will see that one of the instances of the field is not read only and then save to the database.
    • Proposed as answer by Paul Nieuwelaar Wednesday, June 11, 2014 10:05 AM
    • Marked as answer by Sukh Gill Wednesday, June 11, 2014 2:51 PM
    Wednesday, June 11, 2014 8:27 AM

All replies

  • Hi,

    As per my knowledge this is possible only via JavaScript.


    Admin QuikView Solution for CRM 2013

    Wednesday, June 11, 2014 8:24 AM
  • OK think I have a solution for this.  The workaround is to add the locked field twice on the form.  Make 1 instance of the field 'read only' and 'visible' and then make the 2nd instance of the field NOT 'read only' and NOT 'visible' on the form.  then when the Business Rules fire it will see that one of the instances of the field is not read only and then save to the database.
    • Proposed as answer by Paul Nieuwelaar Wednesday, June 11, 2014 10:05 AM
    • Marked as answer by Sukh Gill Wednesday, June 11, 2014 2:51 PM
    Wednesday, June 11, 2014 8:27 AM
  • Hi all.

    This is a good workaround, but it doesn't work for situations where the fields lock situation is updated depending on other form business logic.

    For instance, I have a "Is system calculated?" field. If is yes, then the calculated field is locked, if no, then unlocked. This will also affect the hidden fields unfortunately.

    The only solution I found was to add a JS web resource with the fource submit set to always for these fields.

    There is a good idea here that needs our votes :)

    Cheers!!


    Dynamics CRM Certified Consultant (MB2-631,632,633)

    Monday, April 3, 2017 6:39 PM