Hi bob (and others!
),
Lets go back to basics here...
What I need is an element of the register form to allow the member to select from a range of options that match their criteria. So the question is: Where are you looking for work - the answers will be regions of the UK, so London, South West, South East, Scotland, Wales etc... I need the user to be able to select yes to as many of these as relevant to them. I then need that data to be stored to the extended user field(s), which then when someone reviews the member (user) data - the options they said yes to are displayed, so if the user selected London and Scotland on the register form, when they view their profile it should say on the "Where are you looking for work" field - "London and Scotland". I had thought using a multiple select element was best - but perhaps its not the way to do this....
I was hoping to store all the selected options into a single field, which would read "London, Scotland" for example...
I currently have the data being stored in an array which in the MODx user field looks like:
workregion
> 0 Scotland
> 1 London
So, this is working, e.g. showing the selected options in an array (as I understand it...).
What currently is not working, is when I try and call the [[+workregion]] in a view profile page - it displays nothing... How can I get the data back from that array to be visible either in a select list, or just as a list of text elements to say: Scotland, London - I was thinking that I needed to flatten the array to a comma separated list to make the return display of this info easier.. maybe I am wrong... Also need to consider that the member can edit their profile and so, additionally change these options at any time....
Any thoughts?
cheers,
dubbs.
[ed. note: dubbs last edited this post 8 years, 6 months ago.]