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.

nuhide subform onload brokes subform layout

Questions related to using nuBuilder Forte.
Post Reply
andrea763
Posts: 34
Joined: Tue Oct 17, 2023 7:41 am
Has thanked: 5 times

nuhide subform onload brokes subform layout

Unread post by andrea763 »

Hi everybody I have a subform showed on onclick event and hidden on an onblur. This part works flawlessly.
What doesn't work is that I want hide the subform when the main loads.. I thought the right please for Nuhide was onload() of the main and it effectively hide the sub, but when I shows the sub layout is gone.. All columns are on the left and noway to recover.
Thanks
Last edited by andrea763 on Fri Jan 12, 2024 8:54 am, edited 1 time in total.
kev1n
nuBuilder Team
Posts: 4562
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 528 times
Contact:

Re: Huhide subform onload brokes subform layout

Unread post by kev1n »

I'm not sure exactly where you call nuHide().

If I add nuHide() in the Custom Code of the form and later call nuShow(), the form displays correctly again.
andrea763
Posts: 34
Joined: Tue Oct 17, 2023 7:41 am
Has thanked: 5 times

Re: Huhide subform onload brokes subform layout

Unread post by andrea763 »

i use the nuHide('iframe_macchine_virtuali_id'); on the form custom code.
if i use that command it brokes the layout as you can see in the first attached pictures.
the other pic is the right layout if i use the nuhide and nushow inside a onclick on a textfield.
You do not have the required permissions to view the files attached to this post.
kev1n
nuBuilder Team
Posts: 4562
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 528 times
Contact:

Re: Huhide subform onload brokes subform layout

Unread post by kev1n »

That's strange. I'm not able to replicate this flaw. You could try this:

Code: Select all

$(function() {
   nuHide('iframe_macchine_virtuali_id');
});
$(function() { ... });: This is a shorthand for the jQuery document-ready function. It ensures that the enclosed code is executed only after the DOM has been fully loaded. I
andrea763
Posts: 34
Joined: Tue Oct 17, 2023 7:41 am
Has thanked: 5 times

Re: Huhide subform onload brokes subform layout

Unread post by andrea763 »

i discovered it's a firefox problem in chrome, chromium and opera it works properly..
kev1n
nuBuilder Team
Posts: 4562
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 528 times
Contact:

Re: nuhide subform onload brokes subform layout

Unread post by kev1n »

I tested with FF 121.0.1 and don't see this issue (subform with 25 columns)
Post Reply