Can I have an image display as part of a message using dynamic form rules?

  • 0
  • 1
  • Question
  • Updated 1 year ago
  • In Progress
I would like to be able to display an image and html text as part of a message that displays when certain conditions happen, like in a dynamic form rule.  Is this possible?
Photo of Stephanie

Stephanie

  • 722 Points 500 badge 2x thumb

Posted 1 year ago

  • 0
  • 1
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 51,306 Points 50k badge 2x thumb
No problem.  You can make a formula html field and it can have a combination of text, html characters and an image.

Here an example of some HTML which is fancier than I normally do, but the client needed a red box around the words.


 "<b><font size=2><font color=red>" & 
"<div style=\"border:1px dotted black;padding:1em;\">"
&

"<div style=\"text-align:center\">" & "*** ATTENTION ***"
&"<br><br>" &
"For the quoted pricing to be honoured, the <br><br><u>Job Quote #</u>, "
& "<u>Project Name</u> and <u>Price</u> <br><br>must be given at time of order.</div>"


You can also include an image like this
"<img src=https://images.quickbase.com/si/24/280-user_0.png>"

There are 502 standard images here https://login.quickbase.com/db/9kaw8phg?a=ShowPage&pageid=134 or you can make a table of your own images and link to them as well.

If you intended to include images in external emails to emails sent to non users, be sure to store the images n a separate app open to everyone on the internet.
Photo of Stephanie

Stephanie

  • 722 Points 500 badge 2x thumb
Is there a way I come make the field or data there in appear only when certain conditions are met and be in the middle of the screen, similar to when a message is displayed as part of a dynamic form rule?
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 51,306 Points 50k badge 2x thumb
That is not possible to do natively.  It would require non native techniques as Dan describes below.
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 26,502 Points 20k badge 2x thumb
Use IOL with a Mutation Observer: Here is the code manually applied from the console:

Pastie Database
https://haversineconsulting.quickbase.com/db/bgcwm2m4g?a=dr&rid=590



DON'T ACCEPT INFERIOR NATIVE SOLUTIONS THAT DON'T USE JAVASCRIPT AND DON'T DO EXACTLY WHAT YOU WANT.
(Edited)
Photo of Stephanie

Stephanie

  • 722 Points 500 badge 2x thumb
This is exactly what I need.  I'm not familiar with the Mutation Observer, is there somewhere you can point me to that would guide me on applying what you have?
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 51,306 Points 50k badge 2x thumb
If you are new to Quick Base and generally non technical, then you will either need to contract for it with a Quick Base Solution provider or decide that it's a "nice to have" and not a "need to have".

imho, if you have 100 things that you would like to do with your app and that is one of then, nevermind that one and just get on with the other 99 things that are native and quick to implement.  Come back to that thought once you do the 99 as that one will take time and money to implement.