Forum Discussion

  • I think that this is my cleanest formuals  to show an image on a form and control the size.  I presume from your question that each record will have its own logo, but I may have assumed incorrectly and you in fact want the same logo in every form.


    var text FileType = Right(ToText([file attachment2]),".");

    If(Contains("jpg, jpeg, png",$FileType),
    "<img src=" & URLRoot() & "up/" & Dbid() & "/a/r" & [Record ID#] & "/e282/v0' width='75' >")


    In the example above Field ID 282 has the file attachment.
    • QuickBaseCoachD's avatar
      QuickBaseCoachD
      Qrew Captain
      OK, 
      if you load a file attachment somewhere where all employees have access that table, (even a new table in your app called logos), and then click the file attachment, it will render in the browser. 

      You can then simply put a text element on the form with this syntax
      <img src=https://mycompany.quickbase.com/up/bbeevg2wq/g/rt/eh/va/Division9LogoSmall.jpg>


      ie, take the url that you see when you click on that icon and then copy and paste it into the text element field  on the form and wrap it with that <img src= and the closing > 

      enable html for that text box.
    • RyanRyan2's avatar
      RyanRyan2
      Qrew Assistant Captain
      i'm not. i want it at the top of the form. i did not want to add a file attachment to do it. just want the logo appearing at the top of the form
      • JanetMahan's avatar
        JanetMahan
        Qrew Trainee
        Did you get this to work?  I have tried to add a picture and the suggested text element but the logo doesn't appear.  Only whatever I type in the Text widget.

        ------------------------------
        Janet Mahan
        ------------------------------
    • QuickBaseCoachD's avatar
      QuickBaseCoachD
      Qrew Captain
      last quesiton: what did you mean by this

      "so I'm looking for it to display with a file attachment.