How can I hide the tab for specific user?

Comments

quicksketch’s picture

Users' ability to see these tabs is based on their permissions. Visit admin/user/permissions and only grant the permissions necessary. The edit tab is the "edit any webform content" or "edit own webform content". The results tab is "view all webform results" and "view own webform results".

jackylam’s picture

Sorry, maybe my question is not clear. I want the user can view and edit the webform content. I just want them able to see the tab. The question is just some UI stuff. I am new to Drupal and webform. I have tried to modify the source and clear the cache..but it seems doesn't work.

quicksketch’s picture

Status: Active » Closed (fixed)

Hiding the tabs is a matter of theming. In your page.tpl.php file (inside of your active theme) you can move the tabs or hide them. (They're inside of the $tabs variable). I'd note that not displaying your tabs could have several side-effects and make parts of Drupal very difficult to navigate since the tabs are regarded a rather central part of Drupal's functionality.

As noted in the submission guidelines, support for how to do custom theming is not provided in the Webform issue queue. As such I'm closing this issue. Furthermore, any modifications to the Webform module itself immediately make it so that I cannot provide support, because I never know if a reported bug is a change that you have made or if it's actually a problem with clean copy of Webform.

joelbox-Mondial-IT’s picture

Have a look at the tabtamer module

judy07’s picture

Still can not use tabtamer
hide webform Results tab

easanchez10’s picture

Issue summary: View changes

Did anyone find a solution to this???

vunda’s picture

Running Drupal 8 and Webform 8.x-5.0-rc1+75-dev (2018-Jan-29)

I have a problem showing View and Results after clicking on my webform survey.
On top of my form I can see two tabs. This is a problem because I can see all the records from other submissions.
I want to eliminate these tabs

This is the problem:
Image 1 shows tabs "View" and "Results (Also, I can see all the results or records by clicking on the Result tab).
https://imgur.com/a/g7saR

I want to eliminate these tabs.

This is correct but for some reason, after giving the right permission, it interferes with the webform permission (see image 1).
The second image shows my own webforms submissions result(s). It has access to duplicate/edit/delete my own webforms submissions.
https://imgur.com/a/g7saR

The third image shows a css class "Active"
Any suggestions,

Thank you