
Hi, I am trying to hide the fields that are in the tab-section-fields;
By default for the fields was false, on loading of the questions, I am able to set the field to true, But still the field is not showing up in the form. Can any one please help me...!
var questions = getQuestions(usage ,Type);
for (var i = 0; i < questions.length; i++) {
enableFields(questions[i].attributename);
var logicalName = questions[i].attributename.replace("val", "desc");
var questionText = questions[i].name + " [" + questions[i].value + "]";
Xrm.Page.getAttribute(logicalName).setValue(questionText);
}
}
}
function enableFields(controlName)
{
debugger;
var descAttr =controlName.replace("val", "desc");
var valAttr = controlName.replace("val", "val");
var actionAttr = controlName.replace("val", "action");
Xrm.Page.getControl(descAttr).setVisible(true);
Xrm.Page.getControl(valAttr).setVisible(true);
Xrm.Page.getControl(actionAttr).setVisible(true);
}
*This post is locked for comments
I have the same question (0)