Hello guys. I've a form (office) with a subform (devices).
The subform open another form for editing detail of the devices (virtual machine).
I'd like to hide or disable the button vm if the first field "tipo di apparato" is not esx.
At the moment i used a javascript for not opening the form detail for the vm in that condition, but it's not clean..
any advice for disable (grey), hide the button vm?
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.
hide or disable a column field in subrow conditionally..
hide or disable a column field in subrow conditionally..
You do not have the required permissions to view the files attached to this post.
Re: hide or disable a column field in subrow conditionally..
to be...
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: hide or disable a column field in subrow conditionally..
Hi,
Add an onchange event for "tip di apparato"
Replace VM with the actual object id.
(Untested)
Add an onchange event for "tip di apparato"
Code: Select all
nuSubformRowObject(this.id, 'VM').nuEnable(this.value == 'ESX');
(Untested)
Re: hide or disable a column field in subrow conditionally..
Amazing! Thanks to your help, i managed to do it when i change on the dropdown.
But how have this alredy done when you load the subform?
But how have this alredy done when you load the subform?
Re: hide or disable a column field in subrow conditionally..
i managed to partially solve this using nupad3 iterating in rows.
but as i can hide other field in the same row, i cannot hide the vm one, on wich there's a onclick funcion to open another subform...
seems a nubuilder bug or problem...
if i change the input type from button to text it works as expected...
but as i can hide other field in the same row, i cannot hide the vm one, on wich there's a onclick funcion to open another subform...
seems a nubuilder bug or problem...
if i change the input type from button to text it works as expected...
Re: hide or disable a column field in subrow conditionally..
ok i solved changing olso the object class like this way .attr('class', 'input_text'); and then hiding the object..
Thank's for the support.
Thank's for the support.