Hello everybody,
I have done a script of CRM 2015 and I want that it automatically runs when I upload the page where you can find this script.
I have tried to write at the end of the script a call to my function but this does not work.
CODE:
function cambiar(){
var valor = Xrm.Page.getAttribute("new_tipodeproyecto1").getValue();
switch(valor){
case 0:
Xrm.Page.ui.tabs.get("general").sections.get("Detalles").setVisible(true);
Xrm.Page.ui.tabs.get("general").sections.get("Participantes").setVisible(true);
break;
case 1:
Xrm.Page.ui.tabs.get("general").sections.get("Detalles").setVisible(true);
Xrm.Page.ui.tabs.get("general").sections.get("Participantes").setVisible(true);
break;
}
cambiar();
*This post is locked for comments