# Adding menu option for settings

**URL:** <https://community.noloco.io/t/adding-menu-option-for-settings/452>\
**Category:** Ask for Help\
**Created:** [March 26, 2024, 10:37am UTC](https://community.noloco.io/t/adding-menu-option-for-settings/452 "2024-03-26T10:37:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![SynopsisLabs](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@SynopsisLabs](https://community.noloco.io/u/SynopsisLabs)\
**Post date:** [March 26, 2024, 10:37am UTC](https://community.noloco.io/t/adding-menu-option-for-settings/452/1 "2024-03-26T10:37:37Z")

</div>

Hi,

Am a newbie with Noloco and am creating a portal for a customer. I want to be able to give Admins the option to change settings for the users - e.g. change a users role or to give a user specific functionality.

Is there a way to do this using checkboxes or slide switches per user?

Thanks  
Steve

---

<div class="post-metadata">

**Author:** ![darragh](https://dub1.discourse-cdn.com/flex005/user_avatar/community.noloco.io/darragh/32/12_2.png) [@darragh](https://community.noloco.io/u/darragh)\
**Post date:** [March 26, 2024, 11:02am UTC](https://community.noloco.io/t/adding-menu-option-for-settings/452/2 "2024-03-26T11:02:43Z")

</div>

Hey Steve 👋 This is usually done by changing the user’s role

Any admin can change any other user’s role

Here’s a quick guide on how User Roles and Permissions work in Noloco:

> **[User Roles & Permissions | Noloco](https://guides.noloco.io/users-and-permissions/user-roles-and-permissions)**
>
> Keep tight control over user access levels using User Roles & Permissions

---

<div class="post-metadata">

**Author:** ![SynopsisLabs](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@SynopsisLabs](https://community.noloco.io/u/SynopsisLabs)\
**Post date:** [March 26, 2024, 12:53pm UTC](https://community.noloco.io/t/adding-menu-option-for-settings/452/3 "2024-03-26T12:53:08Z")

</div>

Hi Darragh,

Thanks for the quick response. Let me give you a scenario to make sure that my thinking is sound when using the roles.

I am working on an app that tracks student’s late arrival at school but they are some students that are given a little leeway for various reasons.

So the majority of students need to be there by 8:30 (role Group A) after which they have to report late. Some students however have activities offsite in the morning and are allowed to get to school up to 8:45 (role Group B).

So, I assume that using the roles, if a student who was previously expected by 8:30 now takes up a morning activity, their role would just be changed from Group A to Group B.

Assuming that I am correct, can the Admin then just have a button that will make the change for the student rather having to edit the database directly?

Also, is there anyway to perform login checks in Noloco? I read a post that shows how to do calculations, so I figure that I should be able to store the # of minutes late subtracting the expected time from the actual arrival and storing that result.

Would I then be able to perform logic checks when displaying a chart so if a student is less than 10 minutes late, it will show in one colour, if between 10 and 20 another colour and over 20 another colour?

Thanks  
Steve

---

<div class="post-metadata">

**Author:** ![darragh](https://dub1.discourse-cdn.com/flex005/user_avatar/community.noloco.io/darragh/32/12_2.png) [@darragh](https://community.noloco.io/u/darragh)\
**Post date:** [March 27, 2024, 8:30am UTC](https://community.noloco.io/t/adding-menu-option-for-settings/452/4 "2024-03-27T08:30:20Z")

</div>

There’s a few things to digest here @SynopsisLabs but let me try

> So, I assume that using the roles, if a student who was previously expected by 8:30 now takes up a morning activity, their role would just be changed from Group A to Group B.

Yes that could be one way to do it.  
This might not need to be a role though - it could be an attribute of the student such as a category or status.

> Assuming that I am correct, can the Admin then just have a button that will make the change for the student rather having to edit the database directly?

Absolutely, this would be a great use-case for a dedicated [Action Button](https://guides.noloco.io/actions/action-buttons)

> I figure that I should be able to store the # of minutes late subtracting the expected time from the actual arrival and storing that result.

This sounds like you could use a [formula field](https://guides.noloco.io/data/collections/formulas) to do the calculation

Then you could put that on a chart, it would probably be best to use another formula based on that time result, to categorize them, which you could chart/color

---

<div class="post-metadata">

**Author:** ![SynopsisLabs](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@SynopsisLabs](https://community.noloco.io/u/SynopsisLabs)\
**Post date:** [March 27, 2024, 9:51pm UTC](https://community.noloco.io/t/adding-menu-option-for-settings/452/5 "2024-03-27T21:51:50Z")

</div>

Thanks very much for the response. Will give it a whirl!!
