Switch logo based on user

I need the ability to display a logo on the page based on which Account is logged in.

I have multiple clients using the same app. User Accounts are tied to Facilities and Facilities roll up to a Company. The logos are stored as an image on the Company record. I need to display the Company logo on each page. The logo needs to be the one for the company they belong to. I have not been able to figure out a way to do this. Has anyone successfully accomplished something similar?  I'd love some advice on how to do this.



I would utilize this feature as well. Any update?

This code snippet should be able to do it:

$(document).on("knack-scene-render.any", function(event, scene) {
    $("#kn-app-header").find("img").attr("src", logolink);

You’ll have to use API calls to get the image file’s url and substitute it with logolink.

Thanks for the suggestion Arjun.

I created a work around where I put a field for images in the object that contains the company info so that I didn’t have to mess with API calls. I put a Details block at the top of each page that has only that field in it. It’s a bit kludgy but it works!