Hide Specific Part of a Menu Based on Logged in User Status/Role
Step 1
Copy your specific selector as seen in the image below.
Step 2
Copy and paste the following code into the JavaScript tab of the page and remember to change ‘PASTE_SELECTOR_HERE’ with the selector you copied above.
var selector = 'PASTE_SELECTOR_HERE';
$(function() {
var loggedInUser = '{loggedInUser.Name}';
if (!loggedInUser) {
console.log('Not Logged In');
$(selector).css('display', 'none');
}
});
Original Community Post:
Hide a title - Code CSS - Community Discussions / How Do I - Tadabase Community
We'd love to hear your feedback.