Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

How to add multiple inputs in the form? #18

Answered by Mateo-tem
a007mr asked this question in Q&A
Discussion options

You must be logged in to vote

To add multiple inputs, take this example:

.addComponents(
      new TextInputComponent()
      .setCustomId('customid')
      .setLabel('Some text Here')
      .setStyle('LONG')
      .setMinLength(4)
      .setMaxLength(10)
      .setPlaceholder('Add your reply')
      .setRequired(true),
      
      new TextInputComponent()
      .setCustomId('customid2')
      .setLabel('Some text Here 2')
      .setStyle('LONG')
      .setMinLength(4)
      .setMaxLength(10)
      .setPlaceholder('Add your reply 2')
      .setRequired(true)
    ) 

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Mateo-tem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants