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

execute SCRIPT

$
0
0

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();


Viewing all articles
Browse latest Browse all 55831

Trending Articles



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