Advanced custom field creation with required input fields

Hey there,

I created a custom field with options, I leave those options empty and created input fields next to it.

For those options I prerender the options specific for a page. So I could have something like this:

Accomodation 1
Accomodation type - input field with amount
Accomodation type - input field with amount
Accomodation 2
Accomodation type - input field with amount
Accomodation type - input field with amount
Accomodation type - input field with amount

I got the above working. However, its required to select an accomodation type per accomodation. So for Accomodation 1 and 2. However its only 1 field. What is the best way to accomplish this? I’ve got a database with 30 accomodations. So I can’t create every accomodation hardcoded in the form itself.

Any smart solution on this?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.