[teampractices] [ANY] Looking for live example of a Phabricator custom form

Mukunda Modell mmodell at wikimedia.org
Fri Apr 15 18:04:11 UTC 2016


On Fri, Apr 15, 2016 at 12:41 PM, Max Binder <mbinder at wikimedia.org> wrote:

> You can require certain projects for all task creations going through your
>> creation form, but then the user can't add any extra projects themselves
>> (AFAIK).
>
>
> Do you happen to know if Alex is correct about this?
>
>
Almost correct but not exactly, it's nuanced. You can't absolutely force
certain project tags while also allowing users to add their own but you can
suggest some default projects and let the user make adjustments as needed.

More specifically, you can do either of the following:

   1. Pre-fill and lock the projects field, in which case the user cannot
   add or remove any project tags. You could also hide the projects field, in
   which case the behavior is the same but the user won't even see the
   projects that are being selected for them.
   2. Pre-fill the projects with a default (can be one project or several)
   but leave it unlocked. In this case the user can add projects to the list
   but they are also free to remove the default choices and replace them with
   whatever projects the user wants.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.wikimedia.org/pipermail/teampractices/attachments/20160415/429e0b5c/attachment-0001.html>


More information about the teampractices mailing list