Page 1 of 1

Content box in subform - how to remove it in the grid ?

Posted: Mon Oct 17, 2022 11:36 pm
by yvesf
I have a subform containing input fields grouped by a content box called PC type.
PCType.png
In the parent form, PC type content box appears.
PCTypeCBinparentform.png
How can we remove/hide the content box "PC Type" (highlighted in yellow in the attachment) in the grid of the parent form ?

Re: Content box in subform - how to remove it in the grid ?

Posted: Tue Oct 18, 2022 3:18 am
by kev1n
Use nuHide() to hide objects.

Re: Content box in subform - how to remove it in the grid ?

Posted: Tue Oct 18, 2022 8:53 am
by yvesf
Behind the subform, no 'Custom Code' tab
SubformNoCustomTab.png
If I put the code on the main form, parent of the subform as below, no effect.
ParentFormnuHide.png
Is there any place in which I can put the code with an effect only on browse subform ?
Thx

Yves

Re: Content box in subform - how to remove it in the grid ?

Posted: Tue Oct 18, 2022 10:17 am
by kev1n
It's nuHide() not nuhide(). Subforms don't accept JS.

Re: Content box in subform - how to remove it in the grid ?

Posted: Tue Oct 18, 2022 12:35 pm
by yvesf
No effect with nuHide() either. It seems it is not executed in this context. Any idea ?

Re: Content box in subform - how to remove it in the grid ?

Posted: Tue Oct 18, 2022 12:43 pm
by yvesf
nuHide() works only on Edit form, not on Browse form.

Re: Content box in subform - how to remove it in the grid ?

Posted: Wed Oct 19, 2022 9:23 am
by kev1n
Actually, the ContentBox should not be rendered at all in the subform (Type Grid)

Use my suggestion here by creating a separate form:
viewtopic.php?t=11733

Re: Content box in subform - how to remove it in the grid ?

Posted: Thu Oct 27, 2022 5:22 pm
by kev1n
Is this solved or do you still need our support?