This is how a form might look in the editor:
This is how the form might look in the game:
- Godot 4.1 or higher
Godot 4.0 might work, but is not tested.
Get a form up and running in 11 steps.
- Install the plugin from the Asset Library tab in Godot or from the Asset Library Page or by following the Installation instructions. When the following prompt comes up, select only the "addons" folder:
- Enable the plugin in the Project Settings:
- Add a
Form
to your scene. - Add a
Container
of your choice as a child of theForm
to hold the form elements. - For each form element, add a
FormLabel
and any inputControl
. - Finally, add a
Submit
button.
- In the inspector of your
Form
, set theSubmit Button
property to yourSubmit
button. - In the inspector of each element, set the
input
property to the correspondingControl
node.
- In the inspector of your
Form
, choose and set up aProtocol
. Currently supported protocols are: -HttpProtocol
-MailsendSmtPMailProtocol
-FileProtocol
Of course, you can also implement your own protocol by extending the
Protocol
class or any of its descendants.
- In the inspector of each
FormLabel
, set theinput_required
property if needed. - In the inspector of each input
Control
, set and configure theValidator
property with rules.
More info in the Wiki