Title: Dynamic array based on Input from Parent field
Last modified: December 2, 2024

---

# Dynamic array based on Input from Parent field

 *  Resolved [mionigba](https://wordpress.org/support/users/mionigba/)
 * (@mionigba)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/dynamic-array-based-on-input-from-parent-field/)
 * Hello Sir,
   There’s a Logic I need to implement in my Project, but I don’t know
   if I will be able to implement it with **AR Member** Registration Form!**THE 
   LOGIC**There are **36** States, and each State has **multiple Local Governments**.
   Each Local Government has **multiple Wards**.And each Ward has **multiple Polling
   Units**.For clarity, I will use 3 States as example:1.) **STATE**: Lagos || **
   LOCAL GOVERNMENTS**: 20 || **WARDS**: 8 wards || **POLLING UNITS**: 162.) **STATE**:
   Kaduna || **LOCAL GOVERNMENTS**: 15 || **WARDS**: 12 wards || **POLLING UNITS**:
   243.) **STATE**: Ondo || **LOCAL GOVERNMENTS**: 16 || **WARDS**: 10 wards || **
   POLLING UNITS**: 18**THE LOGIC****State**, **Local Government**, **Ward** and**
   Polling Unit** are all **Dropdown Fields**.If the user selects a **State**, the
   _Local Government_, _Ward_ and _Polling Unit_ fields should only allow selection
   of content limited to the chosen State.So that, if I select **Lagos** as my State,
   I should have option to select only one Local Government from the list of Local
   Governments that are only in Lagos, and should only be able to select one from
   the list of Wards that are only in the Local Government that I have chosen, which
   is in Lagos.When I have chosen that Ward that is within a Local Government, that
   is in Lagos State, I should be able to select only Polling Units within that 
   Ward.But if I select **Kaduna** as my State, I should have option to select only
   one Local Government from the list of Local Governments that are only in Kaduna,
   and should only be able to select one **Ward** from the list of Wards that are
   only in the Local Government that I have chosen, which is in Kaduna.When I have
   chosen that Ward that is within a Local Government, that is in Kaduna State, 
   I should be able to select only one Polling Unit within that Ward.In essence,
   the value that can be selected in **Local Government**, **Ward** and **Polling
   Unit** fields are dynamically populated according to the **State** chosen.As 
   an example from this website ( [https://pre.cac.gov.ng](https://pre.cac.gov.ng)),
   you will see that when I select **Lagos** as **State** here — [https://prnt.sc/YFVdxltorzE5](https://prnt.sc/YFVdxltorzE5)
   Or **Kaduna** as **State** here — [https://prnt.sc/Z2ymzonOq8uQ](https://prnt.sc/Z2ymzonOq8uQ)
   You will see that the **LGA** or **Local Government Area** information changes.
   THE PROBLEMI don’t know if I will be able to implement this Logic with **AR Member
   Registration Form**!Needing to hear from you soon.Regards.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Support [dimplemodi](https://wordpress.org/support/users/dimplemodi/)
 * (@dimplemodi)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/dynamic-array-based-on-input-from-parent-field/#post-18179834)
 * Hello,
   As per your request it seems that you are willing to implement conditional
   logic to the fields, if so then unfortunately currently it will not be possible
   to implement this with ARMember Lite.Please let me know if there is anything 
   else.Thanks
 *  Thread Starter [mionigba](https://wordpress.org/support/users/mionigba/)
 * (@mionigba)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/dynamic-array-based-on-input-from-parent-field/#post-18180015)
 * If you say that what I am asking for, is “**conditional logic**“,
 * Can this be possible with **ARMember Pro**?
 * Regards.
 *  Plugin Support [dimplemodi](https://wordpress.org/support/users/dimplemodi/)
 * (@dimplemodi)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/dynamic-array-based-on-input-from-parent-field/#post-18180548)
 * I am sorry it’s not.
    -  This reply was modified 1 year, 6 months ago by [dimplemodi](https://wordpress.org/support/users/dimplemodi/).
 *  Thread Starter [mionigba](https://wordpress.org/support/users/mionigba/)
 * (@mionigba)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/dynamic-array-based-on-input-from-parent-field/#post-18180812)
 * Since I’m in such a difficult situation– where **ARMember** does not have “**
   Conditional Logic**” in your **Registration Form**, I am so stuck on moving forward,
   and using **ARMember** as my choice plugin for my membership website.
 * Is there a possibility that you can provide me with PHP Code Snippets that can
   help me achieve it?
 * Now, **[Ultimate Member](https://ultimatemember.com)** has this feature called“**
   Choices callback**” — as seen here — [https://docs.ultimatemember.com/article/1539-choices-callback-feature-in-um-2-1](https://docs.ultimatemember.com/article/1539-choices-callback-feature-in-um-2-1)
 * And they show us how to use it here — [https://docs.ultimatemember.com/article/1486-how-to-use-choices-callback](https://docs.ultimatemember.com/article/1486-how-to-use-choices-callback)
 * You will notice that, it seems to be what I am looking for, and it wasn’t implemented
   through **Conditional Logic**.
 * Would you, or anyone in your **ARMember** team be able to help me provide PHP
   Code Snippets that will be able to solve such a problem?
 * Needing to hear from you soon.
 * Regards.
 *  Plugin Support [dimplemodi](https://wordpress.org/support/users/dimplemodi/)
 * (@dimplemodi)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/dynamic-array-based-on-input-from-parent-field/#post-18200122)
 * Hello,
 * I have noticed that you are using the ARMember Premium version, but this forum
   is limited for the ARMember Lite related queries only therefore I cannot assist
   you here for the premium version due to forum limitations. But kindly open a 
   support ticket and then technical support staff will help you further into this.
 * Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Dynamic array based on Input from Parent field’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/armember-membership_1a2538.svg)
 * [ARMember - Membership Plugin, Content Restriction, Member Levels, User Profile & User signup](https://wordpress.org/plugins/armember-membership/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/armember-membership/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/armember-membership/)
 * [Active Topics](https://wordpress.org/support/plugin/armember-membership/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/armember-membership/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/armember-membership/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [dimplemodi](https://wordpress.org/support/users/dimplemodi/)
 * Last activity: [1 year, 5 months ago](https://wordpress.org/support/topic/dynamic-array-based-on-input-from-parent-field/#post-18200122)
 * Status: resolved