> ## Documentation Index
> Fetch the complete documentation index at: https://bigbluebutton.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# How to hide the "Allow Attendees To..." selections

> Canvas administrators can add a JavaScript snippet to their theme that hides the "Allow Attendees To..." options so instructors cannot set them incorrectly when creating a Conference.

Canvas administrators can hide the **Allow Attendees To...** selections that appear when creating a BigBlueButton Conference in Canvas. Hiding these options prevents Conferences from being set up with incorrect attendee settings.

The snippet only affects educator and administrator accounts, which keeps the impact on students' browsers to a minimum.

To hide the selections, add the following code to your Canvas theme JavaScript:

```javascript theme={null}
////////////////////////////////////////////////////////
// Hide BigBlueButton Conferences "Allow Attendees To..." selections
////////////////////////////////////////////////////////

if(windowUrl.includes('/conferences') === true) {
  if(ENV.current_user_roles.indexOf('teacher') > 0 || ENV.current_user_roles.indexOf('admin') > 0) {
    $(document).click(function() {
      setTimeout(function() {
        $("span").each(function() {
          var text = $(this).text();
          if(text === 'Allow Attendees To...') {
            $(this).parent().parent().hide()
          }
        });
      }, 10);
    });
  }
}
```

The **Allow Attendees To...** selections appear before you add the code:

Screenshot of Allow Attendees To... prior to implementing code.

After you add the code, the selections no longer appear:

Screenshot of Allow Attendees To... post to implementing code.
