Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

hide or disable a column field in subrow conditionally..

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

hide or disable a column field in subrow conditionally..

Unread post by andrea763 »

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?
You do not have the required permissions to view the files attached to this post.
andrea763
Posts: 32
Joined: Tue Oct 17, 2023 7:41 am
Has thanked: 5 times

Re: hide or disable a column field in subrow conditionally..

Unread post by andrea763 »

to be...
You do not have the required permissions to view the files attached to this post.
kev1n
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..

Unread post by kev1n »

Hi,

Add an onchange event for "tip di apparato"

Code: Select all

nuSubformRowObject(this.id, 'VM').nuEnable(this.value == 'ESX');
Replace VM with the actual object id.


(Untested)
andrea763
Posts: 32
Joined: Tue Oct 17, 2023 7:41 am
Has thanked: 5 times

Re: hide or disable a column field in subrow conditionally..

Unread post by andrea763 »

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?
andrea763
Posts: 32
Joined: Tue Oct 17, 2023 7:41 am
Has thanked: 5 times

Re: hide or disable a column field in subrow conditionally..

Unread post by andrea763 »

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...
andrea763
Posts: 32
Joined: Tue Oct 17, 2023 7:41 am
Has thanked: 5 times

Re: hide or disable a column field in subrow conditionally..

Unread post by andrea763 »

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.
Post Reply