Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Disable form

Started by Muut Archive 10 years ago · 0 replies · 512 views
10 years ago

Is there any way to programmatically disable a form, or parts thereof (preferably the submit button)? Tried to embed code as under the process part of form.md, i.e. for a form element:

disabled: {% code-goes-here %}

but it does not seem to parse. Any suggestions?

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2597 9 years ago
Archive · by Muut Archive, 9 years ago
2 1706 9 years ago
Archive · by Muut Archive, 9 years ago
2 4999 9 years ago
Archive · by Muut Archive, 9 years ago
1 3830 9 years ago
Archive · by Muut Archive, 9 years ago
3 1814 9 years ago