How to hide and show tab based on field value 'medium and 'high''

Nana5
Mega Guru

How to hide and show tab based on field value 'medium and 'high''

if risk field value high then need to show the Tab vice versa

8 REPLIES 8

Hi Tanaji,


Thanks for reply.


  Actually i want to hide the Tab so how i can get the section of tab.



Thanks


Hi Tanaji,


  Thanks for your help.


    I have done something like below.


function onChange() {


  //Type appropriate comment here, and begin script below


  var sections = g_form.getSections();


  var u_risk = g_form.getValue('u_string_1');


  if(u_risk=='High'){


  //sections[10].style.display = 'none'; //Assisment Tab


  sections[12].style.display = 'block';


  }else{


  sections[12].style.display = 'none';


  }



}


Hope your issue is solved.


If you need any help please let me know.


Thanks Tanaji.


One another issue m facing please find the details below.


How to make the mandatory asterisk size bigger on tabs that have mandatory fields


I tried to increase the size as below but its not working.



function onLoad() {


    //Type appropriate comment here, and begin script below


$$('span.tabs2_tab span.label_description').each(function(e){


      e.style.color = 'red';


  e.style.font-size = 20 px;



});