Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums 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: 4305
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 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: 366
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: 366
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: 4305
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 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