Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

Hide duration field based on another field value

$
0
0

Hi!

 I am getting errors, while I want to hide duration field on the form using this javascript:

function lockdurationfield() {
var duration = Xrm.Page.getControl("actualdurationtime").getName();
var category = Xrm.Page.getAttribute("csp_category").getValue();
if (category == 862600001) {

duration.setDisabled(true);
}
}

I added action on Form (OnLoad).

Thank you for any help!


Viewing all articles
Browse latest Browse all 46379

Trending Articles



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