Dynamic Image for Users

jmmc
jmmc Member

Hi everyone - we're trying to create a page where a user can log in and see their own personal dashboard. Is it possible to add an image for this user to the dashboard that is dynamic in that it shows the image from a url that is for their user id?


The url values would come from a domo data set that maps to the user id.

Answers

  • yes, you can use the HTML table card to display this. You would create a beast mode that has the necessary HTML code to display the image, like this:

    CONCAT('<img src="',`Profile Picture URL`,'" style="width:128px;height:128px"></>')
    

    In this example, the full URL to the image is in the field called Profile Picture URL, but if you just have the ID, you can build the URL in the concatenation as well.

    **Check out my Domo Tips & Tricks Videos

    **Make sure to <3 any users posts that helped you.
    **Please mark as accepted the ones who solved your issue.
  • Thank you Mark! I appreciate the response.

  • @MarkSnodgrass, the only downside would be that it displays the line around the line and column name for the table with the image, right?