1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Button to change custom user field

Discussion in 'XenForo Development Discussions' started by chrisj, Jun 5, 2013.

  1. chrisj

    chrisj 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.
  2. Jake Bunce

    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.
    Pereira and Nobita.Kun like this.

Share This Page