Button to change custom user field


Active member
What would I have to do to make a button on the forum list view change the value of a custom user field (in this case a checkbox in preferences)?
I've created an add-on before but never used the xenform and xftoken.

Jake Bunce

XenForo moderator
Staff member
You need to create a route so you have a location to submit the form, then you need a controller for that route to take in the input and write it out to the database. Then create the HTML form that submits to your new route location.

That's the general idea.