The following defines a form that no user will be able to fill complete except in the unlikely chance that they are in the group no-one-is-in-this:
<noinclude>This is a simple form. {{#formlink:form=Simple|link text=Test|link type=button|new window}} </noinclude><includeonly> {{{info|page name=<unique number>}}} {{{field|text|input type=text|mandatory|restricted=no-one-is-in-this}}} </includeonly>
This is because the text field is mandatory, restricted to users in the no-one-is-in-this group, and has no default.
As I see it, there are three solutions to this problem:
- Leave things the way they are so people get frustrated when they run into this problem,
- Catch the problem when they try to create a form that has a restricted field that is mandatory, but does not specify a default, or
- Assume null when the user doesn't have permission and only enforce "mandatory" when the person has permission to modify the form?
Implementing the third solution makes sense to me.