Quantcast
Channel: WordPress.org Forums » [Forminator Forms – Contact Form, Payment Form & Custom Form Builder] Support
Viewing all articles
Browse latest Browse all 1416

Loading dynamic Data

$
0
0

Replies: 1

Hello Sir,

There’s a Logic I need to implement in my Forminator Form, but I don’t seem to know how to go about it:

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: 16

2.) STATE: Kaduna || LOCAL GOVERNMENTS: 15 || WARDS: 12 wards || POLLING UNITS: 24

3.) STATE: Ondo || LOCAL GOVERNMENTS: 16 || WARDS: 10 wards || POLLING UNITS: 18

THE LOGIC
State, Local Government, Ward and Polling Unit are all Multi-select 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 Local Government from a range of 1 to 20, and Ward from a range of 1 to 8, while Polling Unit is from a range of 1 to 16.

But if I select Kaduna as my State, then Local Government will allow me select from a range of 1 to 15, and Ward from a range of 1 to 12, while Polling Unit is from a range of 1 to 24.

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 ), you will see that when I select Lagos as State here — https://prnt.sc/YFVdxltorzE5

Or Kaduna as State here — https://prnt.sc/Z2ymzonOq8uQ

You will see that the LGA or Local Government Area information changes.

THE PROBLEM
I don’t know how to implement this Logic on the Forminator Form!

REQUEST
Please, how do I implement such Logic with Forminator Form?

Regards.


Viewing all articles
Browse latest Browse all 1416

Trending Articles