Quantcast
Channel: Microsoft Dynamics CRM
Viewing all articles
Browse latest Browse all 123975

Forum Post: RE: Security

$
0
0

I am suggesting a java script for this purpose that could make sense for you:

if( crmForm.FormType == 2 )

{

   //disable required fields

}

else if ( crmForm.FormType == 1 )

{

  //do nothing

}

The problem with this code is it that it is not aware of the user making the change. Thus FLS is needed.

Ideally you’ll want a code that looks like this.

if( crmForm.FormType == 2 )

{

   If ( AllowedUserRoleOrTeam() == false )

   {

   //disable required fields

   }

}

else if ( crmForm.FormType == 1 )

{

  //do nothing

}

This js will disable the required fields when the form state is update.


Viewing all articles
Browse latest Browse all 123975

Trending Articles



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