Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 564 Bytes

form-after-form.md

File metadata and controls

28 lines (22 loc) · 564 Bytes

Display another form after a form

First, create your first server ui form with ModalForm, ActionForm, or MessageForm.

// pseudocode
new ModalFormData()

Show the form to the player with show function with a callback.

// pseudocode
let player: Player;
new ModalFormData().show(player).then((response) => {
    // callback code
});

In the callback call another form, it can be any of the three forms.

// pseudocode
let player: Player;
new ModalFormData().show(player).then((response) => {
  new ActionFormData().show(player);
});