Hi everyone, I wanted to hide the section on quickview form based on lookup field present on main form.
my code is this
function hideAndShow(executionContext)
{
debugger
var formContext = executionContext.getFormContext();
var quickViewControl = formContext.ui.quickForms.get("Quick_Form");
var assetcode = formContext.getAttribute("pcl_field).get value();
if(quickViewControl != undefined)
{
if(quickViewControl.isLoaded())
{
if(assetcode == "Guid1")
{
quickViewControl.ui.tabs.get("tab_1").sections.get("section_1").setVisibile(true);
}
if(assetcode == "Guid2")
{
quickViewControl.ui.tabs.get("tab_1").sections.get("section_2").setVisibile(true);
}
else {
quickViewControl.ui.tabs.get("tab_1").sections.get("section_1").setVisibile(false);
}