#Forms

1 messages ยท Page 1 of 1 (latest)

modern zodiac
#

if u want a form example, ping me

ivory bison
dusky spade
#

there are 2 types of form Action and Modal
action is a simple form with buttons, you can press 1 button.

modal form is more complex, you have:
sliders: number value selectors
dropdowns: string option selector
toggles: true/false selector
textfields: text input

dusky spade
topaz vector
#

Theres 3 message form to

sturdy hare
# stray pebble What about MessageForm?
export function messageFormExample() {
    const messageForm = new MessageFormData().title('form title')
    .body('message')
    .button1('first button')
    .button2('second button');
    return messageForm;
}
stray pebble
topaz vector
#

the thing thats supposed to set attackButton to the players attack level is throwing an error

#

@stray pebble

stray pebble
topaz vector
#

incorrect number of arguments

hollow owlBOT
median wind
topaz vector
#

Ohh

#

Ok but why is it undefined now grr

median wind
topaz vector
#

I have a score tho

#

I think its not setting it when i run it

#

Maybe i need to define the form inside the function to

#

Yup

#

Thats the issue

#

Gonna run tests see if it updates

median wind
topaz vector
#

Its set elsewhere

#

The score attacklvl is set in functions

#

In any case by defining the form in the function it works

#

Even adjusted it it changed idk if it will change while looking at it but i doubt ppl can get xp while in the menu so idc lol

#

Is there a way to make a button not close the form

topaz vector
#

So i have to make that button reopen form to keep it from closing its not a game breaker at least

topaz vector
#

Yay i now have a way to see all my skill levels woohoo

topaz vector
#

idk why but it has the right score in meleeType but its running the last case so even tho both are 1 they are treated as if 3 idk how to fix it

topaz vector
#

@median wind