Build a Contact Form Without Code
This page was created by Wikiadmin on 2026-07-29. Last edited by Wikiadmin on 2026-07-29.
You can create and test a contact form in MDriven Designer without writing code; this walkthrough is for new users who want to turn a small data model into a working form.
Build a contact form
A contact form needs a place to store one contact's details. In MDriven Designer, that place is a class in the model.
- Create a new model and save it.
- On the diagram canvas, create a class named
Contact. - Add these attributes to
Contact:
| Attribute | Type | Example value |
|---|---|---|
Name
|
String | Alex Morgan
|
Email
|
String | alex@example.com
|
Message
|
Text | Please contact me about a demo.
|
The model now describes the information that the form will collect.
Generate the form
AutoForms generates initial ViewModels and views from the classes, attributes, and associations in your model. A ViewModel defines data in a displayable format for the application.
- Right-click an empty area of the diagram canvas.
- Point to AutoForms.
- Select Create/Refresh AutoForms.
Run and test the contact form
- Start the local prototype.
- Open the generated
Contactview. - Create a contact.
- Enter
Alex Morganfor the name,alex@example.comfor the email address, andPlease contact me about a demo.for the message. - Save the contact.
- Select the saved contact to open its generated form and confirm that all three values are shown.
At this point, you can create, view, and save contact data through generated views.
What the model contains
| Model element | Purpose in this example |
|---|---|
Contact class
|
Represents one submitted contact record. |
Name, Email, and Message attributes
|
Define the values collected by the form. |
| AutoForms | Creates generated ViewModels and views so that you can work with the model data. |
