Forum Discussion
GauravSharma3
9 years agoQrew Commander
HI Chris,
Please create a formula text field and turn on the Allow some HTML tags to be inserted option in the field.
Use this formula:
Case([Field1],"red", "<img src=\"https://images.quickbase.com/si/16/227-rect_red.png\"; title=\"red\">",
"blue", "<img src=\"https://images.quickbase.com/si/16/230-rect_blue.png\"; title=\"blue\">",
"green","<img src=\"https://images.quickbase.com/si/16/228-rect_green.png\"; title=\"green\">")
Please let me know if you need any further help.
Thanks,
Gaurav
Please create a formula text field and turn on the Allow some HTML tags to be inserted option in the field.
Use this formula:
Case([Field1],"red", "<img src=\"https://images.quickbase.com/si/16/227-rect_red.png\"; title=\"red\">",
"blue", "<img src=\"https://images.quickbase.com/si/16/230-rect_blue.png\"; title=\"blue\">",
"green","<img src=\"https://images.quickbase.com/si/16/228-rect_green.png\"; title=\"green\">")
Please let me know if you need any further help.
Thanks,
Gaurav
- _anomDiebolt_9 years agoQrew EliteGet in the habit of putting formulas within a <pre> tag:
Case([Field1], "red", "<img src=\"https://images.quickbase.com/si/16/227-rect_red.png\"; title=\"red\">",
"blue", "<img src=\"https://images.quickbase.com/si/16/230-rect_blue.png\"; title=\"blue\">",
"green","<img src=\"https://images.quickbase.com/si/16/228-rect_green.png\"; title=\"green\">" ) - GauravSharma39 years agoQrew CommanderThanks Dan, I'll make sure next time :)
- _anomDiebolt_9 years agoQrew EliteThe forum will not let me edit my prior post (this is really annoying) but I intended to replace the escaped double quotes with single quotes and remove the errant semicolon in the formula. Let me try again:
Case([Field1],
"red", "<img src='https://images.quickbase.com/si/16/227-rect_red.png' title='red'>",
"blue", "<img src='https://images.quickbase.com/si/16/230-rect_blue.png' title='blue'>",
"green","<img src='https://images.quickbase.com/si/16/228-rect_green.png' title='green'>"
)As well as post a version that does not even use single quotes on the attributes:
Case([Field1],
"red", "<img src=https://images.quickbase.com/si/16/227-rect_red.png title=red>",
"blue", "<img src=https://images.quickbase.com/si/16/230-rect_blue.png title=blue>",
"green","<img src=https://images.quickbase.com/si/16/228-rect_green.png title=green>"
)
FWIW, because I placed these formulas within <pre> tags I have some scripts that can automatically extract formulas posted to the forum and place them into a formula corpus application. When you start looking at 1000s of QuickBase formulas in a table rather than working with formulas individually a lot of patterns emerge which helps understand the characteristics of good and bad formulas. Perhaps a byproduct of this effort will be to write up a best practices for constructing and formatting formulas. - GauravSharma39 years agoQrew CommanderThanks Dan for this and I also tried to edit my previous post but could not able to do that. It is very annoying. Why have they done like this?
- QuickBaseCoachD9 years agoQrew CaptainI think the ability to edit may depend if you are signed in? It seems to me that if I click that sign in button then I am able to edit my posts. But I'm not 100% sure of that theory that it's simply forgetting to maintain my sign-on and that an extra click to get re-signed on will allow edits.
- _anomDiebolt_9 years agoQrew EliteI think it is rather obvious that the forum managers are hellbent on thwarting our efforts and that they should be sent to re-education camps.
- GauravSharma39 years agoQrew CommanderMark: No, I am not able to edit my post if I am already signed in and Dan is right "they should be sent to re-education camps." :-D :-D
- MCFNeil9 years agoQrew CaptainI've noticed that once somebody else comments, your "Edit" ability goes away. At least on my end.