cancel
Showing results for 
Search instead for 
Did you mean: 

How to hidden several fields in a form?

geekonspace
Star Contributor
Star Contributor

I want when an user marks an checkbox, hidden another field in the form. I believe I can do it using javascript but I dont know where I can put this code.

1 ACCEPTED ANSWER

Anahide_Tchertc
Elite Collaborator
Elite Collaborator

If you have a solution using javascript, you can put it in a widget template.

Ideally this would need to be handled using ajax, as this will make it possible to ensure good re-rendering of your widgets state when redirecting after a validation error. There are several helpers in the Nuxeo tag library available since 5.5, but that kind of use cases have not been incorporated in the layouts/widgets management yet. I gathered needed improvements in the jira issue NXP-8996, if you'd like to have a look at diff files i used to test that kind of re-rendering.

View answer in original post

2 REPLIES 2

Anahide_Tchertc
Elite Collaborator
Elite Collaborator

If you have a solution using javascript, you can put it in a widget template.

Ideally this would need to be handled using ajax, as this will make it possible to ensure good re-rendering of your widgets state when redirecting after a validation error. There are several helpers in the Nuxeo tag library available since 5.5, but that kind of use cases have not been incorporated in the layouts/widgets management yet. I gathered needed improvements in the jira issue NXP-8996, if you'd like to have a look at diff files i used to test that kind of re-rendering.

thanks for your answer Anahide, I will review that link

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.