# Rendering of addmore section or obsgroup is not working as expected when there are form conditions inside it

**URL:** <https://talk.openmrs.org/t/rendering-of-addmore-section-or-obsgroup-is-not-working-as-expected-when-there-are-form-conditions-inside-it/23941>\
**Category:** Bahmni\
**Created:** [July 16, 2019, 4:49am UTC](https://talk.openmrs.org/t/rendering-of-addmore-section-or-obsgroup-is-not-working-as-expected-when-there-are-form-conditions-inside-it/23941 "2019-07-16T04:49:51Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![angshuonline](https://talk.openmrs.org/user_avatar/talk.openmrs.org/angshuonline/32/4925_2.png) [@angshuonline](https://talk.openmrs.org/u/angshuonline)\
**Post date:** [July 17, 2019, 11:55am UTC](https://talk.openmrs.org/t/rendering-of-addmore-section-or-obsgroup-is-not-working-as-expected-when-there-are-form-conditions-inside-it/23941/3 "2019-07-17T11:55:33Z")

</div>

So, if I understand this right:

1. for every “container” control (e.g. section, obsgroup etc) - an onload() function will be called on mount of the control
2. if “add-more” is allowed for the control, and if so clicked on form for a container control - the control.onload() function will be called for the newly added control.
3. These events are fired only for the control thats being added - and will have no effect or any other event being fired for either the parent control or sibling controls.

---

_[View the full topic](https://talk.openmrs.org/t/rendering-of-addmore-section-or-obsgroup-is-not-working-as-expected-when-there-are-form-conditions-inside-it/23941)._
