Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

How to change attribute requirepment level permanently ?

$
0
0

Hi,

when I changing required level for a field, it works only when form is open. When I reopen a form, required level returns to default.  How can I change level permanently ?

this is part of my code

        if (prospectText == valueToTrigger) {
            Xrm.Page.data.entity.attributes.get(attributeToChange).setRequiredLevel("required");
        }
        else {
            Xrm.Page.data.entity.attributes.get(attributeToChange).setRequiredLevel("none");
        }
        Xrm.Page.data.entity.attributes.get(attributeToChange).setSubmitMode("always");


Viewing all articles
Browse latest Browse all 8223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>