CMB2 / CMB2-User-Select

Select a user to associate with your object
21 stars 10 forks source link

Added: Example of how to turn field data into an id and back again #7

Closed Gisleburt closed 5 years ago

Gisleburt commented 5 years ago

Hi there, I hope this is useful.

We wanted to replace an existing user select (which loaded 15k users into a standard dropdown) with CMB2-User-Select. The original select only returned the users id, and so we needed CMB2-User-Select to empulate that behaviour so that we didn't loose existing data.

It took us a little digging around CMB2's main documentation to find out how to do that, so I thought adding it to the README here might others.

jtsternberg commented 5 years ago

This is great, thank you. I wish we would’ve done that in the first place!

jtsternberg commented 5 years ago

Oh, lol, I can’t merge as I don’t have access to this repo anymore. :)