javascript not working on DynamicModelFormField #8942
Unanswered
leerobertsprojects
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have a problem where i am trying to disable certain forms fields based on a tick box, i have included the javascript below
When on the Page, the VLAN field is a DynamicModelFormField and will never disable, but when toggling the switch on and off the fields do not re-enable, i know the event is getting fired because i can see it in the developer tools, the disabled tage gets applied and removed with no change on the page, This may be a simple mistake but would like if someone can point me in the right direction.
below is what the page looks like
when unticked, VLAN should be enabled and Service type and function should be disabled, when ticked it should be the other way round
Thanks
Beta Was this translation helpful? Give feedback.
All reactions