Welcome to the nuBuilder Forums!

Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.

If there are no entries in the subform - to hide the subform

Questions related to customising nuBuilder Forte with JavaScript or PHP.
kev1n
nuBuilder Team
Posts: 4562
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 528 times
Contact:

Re: If there are no entries in the subform - to hide the sub

Unread post by kev1n »

The function works for me. E.g. when calling this function in the "Access Levels" form, all subforms are hidden.

https://streamable.com/cvy2p2
kknm
Posts: 377
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: If there are no entries in the subform - to hide the sub

Unread post by kknm »

kev1n wrote:The function works for me. E.g. when calling this function in the "Access Levels" form, all subforms are hidden.

https://streamable.com/cvy2p2
Found a mistake in the problem description.
On the main form, I need to hide the run objects (type = iFrame)
kknm
Posts: 377
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: If there are no entries in the subform - to hide the sub

Unread post by kknm »

kev1n wrote:The function works for me. E.g. when calling this function in the "Access Levels" form, all subforms are hidden.

https://streamable.com/cvy2p2
Found a mistake in the problem description.
On the main form, I need to hide the run objects (type = iFrame)
kev1n
nuBuilder Team
Posts: 4562
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 528 times
Contact:

Re: If there are no entries in the subform - to hide the sub

Unread post by kev1n »

First the main form is created and then the run objects. So at the moment, when the main form is loaded, the run objects are not yet fully loaded.
Therefore, you can't retrieve the number of rows of a run object from the main form (while the run objects don't exist yet)
Post Reply