Hi, I am new to Acumatica, I want to show or hide some section based on the check box value which is available in another form. How to achieve this functionality. Could you please assist on this.
How to show/Hide a section of a form based on another form field (Check box) value?
Best answer by vivekm
Hi
You can try like below using RowSelected event:
protected virtual void InventoryItem_RowSelected(PXCache cache, PXRowSelectedEventArgs e, PXRowSelected BaseEvent)
{
if (BaseEvent != null) BaseEvent(cache, e);
InventoryItem rows = (InventoryItem)e.Row;
if (rows == null) return;
if (rows.checkbox == false) // If your checkbox unchecked
{
View.AllowSelect = false; // whole section will be hidden, if that section has specific view
PXUIFieldAttribute.SetVisible<KNDCInventoryItemExt.usrKNDCBaseNewConditionSKU>(cache, rows, false); // specific field will be hidden
}
}
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.