Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

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

Questions related to using nuBuilder Forte.
Post Reply
yvesf
Posts: 315
Joined: Sun Mar 14, 2021 8:48 am
Location: Geneva
Has thanked: 87 times
Been thanked: 11 times

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

Unread post 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 ?
You do not have the required permissions to view the files attached to this post.
kev1n
nuBuilder Team
Posts: 4292
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

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

Unread post by kev1n »

Use nuHide() to hide objects.
yvesf
Posts: 315
Joined: Sun Mar 14, 2021 8:48 am
Location: Geneva
Has thanked: 87 times
Been thanked: 11 times

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

Unread post 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
You do not have the required permissions to view the files attached to this post.
kev1n
nuBuilder Team
Posts: 4292
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

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

Unread post by kev1n »

It's nuHide() not nuhide(). Subforms don't accept JS.
yvesf
Posts: 315
Joined: Sun Mar 14, 2021 8:48 am
Location: Geneva
Has thanked: 87 times
Been thanked: 11 times

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

Unread post by yvesf »

No effect with nuHide() either. It seems it is not executed in this context. Any idea ?
yvesf
Posts: 315
Joined: Sun Mar 14, 2021 8:48 am
Location: Geneva
Has thanked: 87 times
Been thanked: 11 times

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

Unread post by yvesf »

nuHide() works only on Edit form, not on Browse form.
kev1n
nuBuilder Team
Posts: 4292
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

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

Unread post 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
kev1n
nuBuilder Team
Posts: 4292
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

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

Unread post by kev1n »

Is this solved or do you still need our support?
Post Reply