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
}
}
Login to the community
No account yet? Create an account
Social Login
Login with your Acumatica accountEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.