# Behavior.js:119 TypeError: Cannot read properties of undefined (reading 'hasClassName')

**URL:** <https://community.jenkins.io/t/behavior-js-119-typeerror-cannot-read-properties-of-undefined-reading-hasclassname/10795>\
**Category:** Ask a question\
**Created:** [November 17, 2023, 2:44pm UTC](https://community.jenkins.io/t/behavior-js-119-typeerror-cannot-read-properties-of-undefined-reading-hasclassname/10795 "2023-11-17T14:44:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanjin325](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/sanjin325/32/6115_2.png) [@sanjin325](https://community.jenkins.io/u/sanjin325)\
**Post date:** [November 17, 2023, 2:44pm UTC](https://community.jenkins.io/t/behavior-js-119-typeerror-cannot-read-properties-of-undefined-reading-hasclassname/10795/1 "2023-11-17T14:44:09Z")

</div>

Jenkins 2.263.4 upgrade to 2.346.3  
but there is something wrong, where I choose a job and configure，enter into the configure page, the page style go wrong.  
I open DevTools and choose console, a lot of errors like:  
behavior.js:119 TypeError: Cannot read properties of undefined (reading ‘hasClassName’)  
TypeError: Cannot read properties of undefined (reading ‘hasClassName’)  
TypeError: Cannot read properties of undefined (reading ‘makeInnerVisible’)

---

<div class="post-metadata">

**Author:** ![MarkEWaite](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/markewaite/32/20_2.png) [@MarkEWaite](https://community.jenkins.io/u/MarkEWaite)\
**Post date:** [November 17, 2023, 3:06pm UTC](https://community.jenkins.io/t/behavior-js-119-typeerror-cannot-read-properties-of-undefined-reading-hasclassname/10795/2 "2023-11-17T15:06:27Z")

</div>

Probably related to the configuration form modernization that happened in Jenkins 2.277.1.

Refer to the detailed steps in an [earlier post](https://community.jenkins.io/t/migrating-jenkins/894/5)

---

<div class="post-metadata">

**Author:** ![sanjin325](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/sanjin325/32/6115_2.png) [@sanjin325](https://community.jenkins.io/u/sanjin325)\
**Post date:** [November 20, 2023, 9:04am UTC](https://community.jenkins.io/t/behavior-js-119-typeerror-cannot-read-properties-of-undefined-reading-hasclassname/10795/3 "2023-11-20T09:04:44Z")

</div>

The dynamicparameter plugin is used in every job in my jenkins. But this plugin is deprecated. I can not remove. So which plugin can replace the dynamicparameter plugin?

---

<div class="post-metadata">

**Author:** ![MarkEWaite](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/markewaite/32/20_2.png) [@MarkEWaite](https://community.jenkins.io/u/MarkEWaite)\
**Post date:** [November 20, 2023, 1:31pm UTC](https://community.jenkins.io/t/behavior-js-119-typeerror-cannot-read-properties-of-undefined-reading-hasclassname/10795/4 "2023-11-20T13:31:36Z")

</div>

I don’t recognize the dynamic parameter plugin. However, the [active choices plugin](https://plugins.jenkins.io/uno-choice/) seems to be a very popular plugin for more advanced parameter cases.

There is a blog post about it on another site:

> **[How to Render Jenkins Build Parameters Dynamically?](https://www.infracloud.io/blogs/render-jenkins-build-parameters-dynamically/)**
>
> This article provides step by step instructions on how to use Jenkins Active Choices plugin to render build parameters dynamically.

There are also videos from [AJAutomation](https://www.youtube.com/@AJAUTOMATION) on active choices plugin, including:

[![](https://europe1.discourse-cdn.com/flex013/uploads/jenkins/original/2X/9/91eb8d478352b77ad240fb5d2ecf4117d9c32ab5.jpeg "Jenkins Active Choice Parameter |Active Choices Reactive Parameter| Jenkins Dynamic parameterization") ](https://www.youtube.com/watch?v=iqb-UxC1MDo)

[![](https://europe1.discourse-cdn.com/flex013/uploads/jenkins/original/2X/9/9e0607113cadd9cefe842fa910f754a3f579f06f.jpeg "Active Choices Jenkins Parameters | Jenkins Parameters: Dynamic Parameterization Using Groovy Script") ](https://www.youtube.com/watch?v=mBVISwrRL0o)
