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
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
nuhide subform onload brokes subform layout
nuhide subform onload brokes subform layout
Last edited by andrea763 on Fri Jan 12, 2024 8:54 am, edited 1 time in total.
-
- nuBuilder Team
- Posts: 4292
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 444 times
- Contact:
Re: Huhide subform onload brokes subform layout
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.
If I add nuHide() in the Custom Code of the form and later call nuShow(), the form displays correctly again.
Re: Huhide subform onload brokes subform layout
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.
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.
-
- nuBuilder Team
- Posts: 4292
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 444 times
- Contact:
Re: Huhide subform onload brokes subform layout
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
Re: Huhide subform onload brokes subform layout
i discovered it's a firefox problem in chrome, chromium and opera it works properly..
-
- nuBuilder Team
- Posts: 4292
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 444 times
- Contact:
Re: nuhide subform onload brokes subform layout
I tested with FF 121.0.1 and don't see this issue (subform with 25 columns)