2019-02-21, 02:52 AM
Right now the UserCP just grabs all the custom fields and spits them out in table rows for user selection/answering. I'd like to be able to break them up into sections/categories instead of just one long string (I have several hundred).
I've had a look at this thread and while I could manually copy each one, it also doesn't address the 'selected' tag on the input.
Would it be possible to easily create arrays of custom fields? Either with a new 'category' column in the customfields table or with multiple queries with a WHERE limiter? Then loop the arrays through the existing templates? Or a better way?
Currently:
--Custom Fields--
Field 1
Field 2
Field 3
Desired:
--Customfields--
---Category A---
Field 1
---Category B---
Field 2
---Category C---
Field 3
It's really just a visual aesthetic/ease of use (500+ fields) where I could ideally put the categories of fields in collapsible sections, so it's not a huge deal if it's not easily doable.
I've had a look at this thread and while I could manually copy each one, it also doesn't address the 'selected' tag on the input.
Would it be possible to easily create arrays of custom fields? Either with a new 'category' column in the customfields table or with multiple queries with a WHERE limiter? Then loop the arrays through the existing templates? Or a better way?
Currently:
--Custom Fields--
Field 1
Field 2
Field 3
Desired:
--Customfields--
---Category A---
Field 1
---Category B---
Field 2
---Category C---
Field 3
It's really just a visual aesthetic/ease of use (500+ fields) where I could ideally put the categories of fields in collapsible sections, so it's not a huge deal if it's not easily doable.