Before you post here, first search for an existing topic to Hi guys, I am trying to add another condition in my JS code but it does not work.
this works:
/Show edit IDEA if Responsible of Idea"/
$(document).on(‘knack-view-render.view_265’, function(event, view, data) {
$(’#view_265 div.kn-details-link’).hide();
var LoggedInUser = (Knack.getUserAttributes().name);
var Responsible = $(’#view_265 div.kn-detail.field_271 > div.kn-detail-body’).text();
if(LoggedInUser === Responsible) {
$(’#view_265 div.kn-details-link’).show();
};
});see if this question has already been asked and answered. If not, create a new topic!
Be concise, but don’t forget to provide context for your question, explaining what you need help with using specific examples. Screenshots and links encouraged.
This does not work:
/*Show edit button IF Responsible of the Idea OR Coordinator (contains the role) */
I had left it alone to work on styling issues, and looking at it again today with a fresh look I discovered 2 things very fast:
a) for some reason, I wasn’t using the normal coding single quotation marks,
b) I changed the page access to all users.