# Restricting choice in specific field based on user role

**URL:** <https://forum.getkirby.com/t/restricting-choice-in-specific-field-based-on-user-role/18291>\
**Category:** Questions\
**Tags:** v3\
**Created:** [May 20, 2020, 11:36am UTC](https://forum.getkirby.com/t/restricting-choice-in-specific-field-based-on-user-role/18291 "2020-05-20T11:36:49Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![jbeauviala](https://avatars.discourse-cdn.com/v4/letter/j/f19dbf/32.png) [@jbeauviala](https://forum.getkirby.com/u/jbeauviala)\
**Post date:** [May 20, 2020, 2:25pm UTC](https://forum.getkirby.com/t/restricting-choice-in-specific-field-based-on-user-role/18291/9 "2020-05-20T14:25:26Z")

</div>

So the plugin did not answer exactly my need, so I went to the [edition of the index.php](https://forum.getkirby.com/t/custom-blueprint-for-different-roles/12272/2) file, and duplicated 5 times the blueprints directory… 😑 Then edited each pages/article.yml to restrict the value.

From :

```
...
fields:
  category:
	type: select
	max: 1
	options: query
	query: page.parent.categories.split

```

To :

```
...
fields:
  category:
	type: hidden
	default: The forced category for that role

```

And it seems to be working ! It might not be very efficient, but for now it will do nicely 🙂

Thanks to all,

j.

---

_[View the full topic](https://forum.getkirby.com/t/restricting-choice-in-specific-field-based-on-user-role/18291)._
