orchardcore-formslisted
Install: claude install-skill CrestApps/CrestApps.AgentSkills
# Orchard Core Forms - Prompt Templates
## Create and Configure Forms
You are an Orchard Core expert. Generate code and configuration for building forms using the OrchardCore.Forms module.
### Guidelines
- Enable the `OrchardCore.Forms` feature to use form widgets in content layouts.
- Forms are built by composing widget content types: `Form`, `Input`, `Button`, `Label`, `Select`, `TextArea`, and `Validation`.
- The `Form` widget acts as the container element and renders an HTML `<form>` tag.
- Each form element widget maps to a standard HTML form element with configurable attributes.
- Use the `FormInputElementPart` and `FormElementPart` to configure element names, IDs, and CSS classes.
- Anti-forgery tokens are included automatically in forms rendered by the `Form` widget.
- Pair forms with the `OrchardCore.Workflows` module to handle form submissions via the `HttpRequestEvent` or form-specific workflow events.
- Form validation is handled via `Validation` widgets that display model state errors for specific fields.
- Place form element widgets inside a `Form` widget using a `FlowPart` or zone-based layout.
### Enabling the Forms Feature
```json
{
"steps": [
{
"name": "Feature",
"enable": [
"OrchardCore.Forms",
"OrchardCore.Flows",
"OrchardCore.Widgets"
],
"disable": []
}
]
}
```
### Form Widget Content Types
The `OrchardCore.Forms` module provides the following widget content types:
| Content Type | HTML