Reply To: Dynamic Population of Dropdown with posts

Home Forums Quform WordPress Dynamic Population of Dropdown with posts Reply To: Dynamic Population of Dropdown with posts

#30240
Samurai
Participant

Hi,
I would like to achieve the same, but with optgroup. I presume I would need to create an array like this:
[
[‘optgroup_text_that_will_be_displayed’ => [
[‘label’ => ‘a text label’, ‘value’ => ‘a text value’],
[‘label’ => ‘a text label’, ‘value’ => ‘a text value’],
[‘label’ => ‘a text label’, ‘value’ => ‘a text value’]
],
[‘optgroup_text_that_will_be_displayed’ => [
[‘label’ => ‘a text label’, ‘value’ => ‘a text value’],
[‘label’ => ‘a text label’, ‘value’ => ‘a text value’],
[‘label’ => ‘a text label’, ‘value’ => ‘a text value’]
]
]

Could you advise?
Thanks
David

Be inspired. © 2019 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy