javascript - Check boxes and Tabs in CRM 2011 -


i have 3 checkboxes (a,b,c) , 3 tabs (a,b,c). when 'a' checked, tab needs open (tab b , c needs closed). when 'b' checked (tab , c needs closed, tab b needs open. how can achieve this?. have function can use.

go form properties of entity on have checkboxes , tabs :

select checkbox a, click on change properties , make own function below named maketabsrequired:

enter image description here

now in function maketabsrequired

function maketabsrequired() { //string taba =xrm.page.ui.tabs.get("a").getdisplaystate() //string tabb =xrm.page.ui.tabs.get("b").getdisplaystate() //string tabc =xrm.page.ui.tabs.get("c").getdisplaystate()  if(xrm.page.ui.controls.get("checkboxa").getattribute().getvalue()=true) {  xrm.page.ui.tabs.get("a").setdisplaystate('expanded'); xrm.page.ui.tabs.get("b").setdisplaystate('collapsed'); xrm.page.ui.tabs.get("c").setdisplaystate('collapsed');  } else {  xrm.page.ui.tabs.get("a").setdisplaystate('collapsed'); xrm.page.ui.tabs.get("b").setdisplaystate('expanded'); xrm.page.ui.tabs.get("c").setdisplaystate('expanded');  } } 

here control named "shipping same billing info" checkbox, , have attached function onchange of checkbox

similarly attach function onchange of checkbox b , c


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -