# Make a contact form that saves to the site

Source: https://uglydev.com/docs/how-do-i-forms-and-languages/make-a-contact-form-that-saves-to-the-site-2/
Updated: 20 November 2026

![The contact form on the site, drawn with the theme style](https://uglydev.com/wp-content/uploads/2026/11/shot-make-a-contact-form-that-saves-to-the-site-1-1.webp)

*The contact form on the site, drawn with the theme style.*

1. Make a field group `Contact` with a Text `name`, an Email `email` and a Text area `message`.
2. In your template, or as a shortcode in a page:

```php
ugly_form( array(
	'groups'    => array( 'group_contact' ),
	'post_type' => 'message',
	'status'    => 'pending',
	'who'       => 'anyone',
	'submit'    => 'Send',
	'notify'    => 'hello@example.com',
) );
```

```
[ugly_fields_form groups="group_contact" post_type="message" who="anyone"]
```

A visitor cannot publish: their post waits for review. It has its own token, a honeypot, a minimum time and limits of tries. Fields that cannot go in a form (an image, a file, rich text) are left out, and the person who builds the site sees a notice that lists them. See [Forms](https://uglydev.com/docs/forms-bindings-rest-graphql/forms-on-the-site/).
