Quantcast
Channel: aras PLM community
Viewing all articles
Browse latest Browse all 1103

How to make field to do not take space on form when 'display' set to none.

$
0
0

Hi,

On my Item's form added number of fields, based on a dropdown selection I have to hide/show specific fields. I am using following code to do that,

var thisItem = document.thisItem;
var model = thisItem.getProperty("model_","");
                                   var field1 = document.fieldsTab["kb_type"].substring(0, 128);
                                   var field2 = document.fieldsTab["kb_interface"].substring(0, 128);
                                   var field3= document.fieldsTab["kb_ratesubstring(0, 128);
                                   var field4 = document.fieldsTab["mse_type"].substring(0, 128);
                                   var field5 = document.fieldsTab["mse_rate"].substring(0, 128); 
                                  .....................................
                                   var field9 = document.fieldsTab["rp_interface"].substring(0, 128); 
if(model==="MSE")
{
document.getElementById(field4).style.display = "block";  
    document.getElementById(field5).style.display = "block";
  //---hiding remaining all
 document.getElementById(field1).style.display = "none"; 
.........
}

If we use display=none on a normal web page, it hides the field and removes the space occupied by the field. But on Item's form it is just hiding the field, hidden field is still occupying taking the space.

Is there any other property which hides and frees the space by hidden field in Aras?


Viewing all articles
Browse latest Browse all 1103

Trending Articles