Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
How can I hide the tab for specific user?
How can I hide the tab for specific user?
Comments
Comment #1
quicksketchUsers' 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".
Comment #2
jackylam CreditAttribution: jackylam commentedSorry, 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.
Comment #3
quicksketchHiding 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.
Comment #4
joelbox-Mondial-IT CreditAttribution: joelbox-Mondial-IT commentedHave a look at the tabtamer module
Comment #5
judy07 CreditAttribution: judy07 commentedStill can not use tabtamer
hide webform Results tab
Comment #6
easanchez10 CreditAttribution: easanchez10 commentedDid anyone find a solution to this???
Comment #7
vunda CreditAttribution: vunda as a volunteer commentedRunning 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