I want to be able to create choice answers on the server side.

  • If you don’t standardize the display and input of buttons, you have to send each of them from the server, which is a hassle. - Common display and input of ✅ buttons
  • status quo
    • Receive response from server in JSON
    • If data.text is not empty, set lastKeywords, otherKeywords to setGlobal
    • Update buttons with useGlobal
  • Let’s give it to them in BUTTONS!
  • Looks like it’s working well.
  • Move ✅ first

This page is auto-translated from /nishio/✅回答選択肢をサーバサイドで作る using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I’m very happy to spread my thought to non-Japanese readers.