var animal = field("Animal Type")
if (animal == "🐐 Goat")
"#e9d3ff";
else if (animal == "🐔 Chicken")
"#f9d590";
else if (animal == "🐮 Cow")
"#eaded2";
else if (animal == "🐷 Pig")
"#ffeff4";
else if (animal == "🐑 Sheep")
"#e0d9df";
else if (animal == "🐰 Rabbit")
"#fffbc9";
--
You received this message because you are subscribed to the Google Groups "mementodatabase" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mementodataba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/d753b14b-1a12-41aa-87e3-1dd2abb880fen%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/CACx3mG-%2B163CMTd1Vs_HNzOsUqnL1f1JcD1e4geeBOP7oV76YQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/CAJkz3e1okoUjPv7SwxFkX1P29MhXu5C7R8U6AcdFmPg5HVc5NA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/142fcbd8-76bb-488b-8771-18cbe2e24d3cn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/ad4a876c-aca7-4698-b51b-599cba47055fn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/6b4dd64f-7edb-4be1-9099-d05623b2d0c6n%40googlegroups.com.
Give me a sec to catch up to you...On Sat., Jan. 2, 2021, 6:37 p.m. Beth Dixon, <beth.ea...@gmail.com> wrote:Yep, first you need to select the JavaScript libraries...On Sat., Jan. 2, 2021, 6:37 p.m. Sam Stamport, <sam.st...@gmail.com> wrote:Guess it's something wrong with my Java Script coding. I selected Category as my background entry field on Main.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/f3245885-c93e-4ad8-b417-5d5b267a4cf2n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/5ab45cf8-9949-4737-af38-b8b52f4844ban%40googlegroups.com.
Am I also dense? Rather than
using JavaScript; under the field ANIMAL TYPE go to your list
entries (🐔 CHICKEN, 🐷
PIG, 🐮 COW, 🐴 HORSE, 🐼
PANDA, 😛 ETC) and click on color. Assign a color and use that
field (ANIMAL TYPE) when you pick your background color.
Yep, looks good, you just need to Add JavaScript libraries.
Beth
On Sat., Jan. 2, 2021, 6:38 p.m. Beth Dixon, <beth.ea...@gmail.com> wrote:
Give me a sec to catch up to you...
On Sat., Jan. 2, 2021, 6:37 p.m. Beth Dixon, <beth.ea...@gmail.com> wrote:
Yep, first you need to select the JavaScript libraries...
On Sat., Jan. 2, 2021, 6:37 p.m. Sam Stamport, <sam.st...@gmail.com> wrote:
Guess it's something wrong with my Java Script coding. I selected Category as my background entry field on Main.
On Sat, Jan 2, 2021 at 5:34 PM Beth Dixon <beth.ea...@gmail.com> wrote:
Hi there Sam, not dense at all. I see you have created the JavaScript field. In the Library edit screen did you go to Main tab, and select that field as your Background entry color? Also, just in case, can you send me the code you have entered in your JavaScript field?
On Sat., Jan. 2, 2021, 6:25 p.m. Sam Stamport, <sam.st...@gmail.com> wrote:
Hi Beth,
Sorry to be so dense.
I used the Android app. What a pain to use that tiny keyboard!
This is a to do list.
I wanted the background of all the fields (like your animals snapshot above) to have a specific color based on my Category field.
(image)
var bp = field("Reading");
if (( bp > 130 ) && ( bp > 150 ))
"#ff0000"
else
"#ffff00"
--
You received this message because you are subscribed to the Google Groups "mementodatabase" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mementodataba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/55d1ad59-b06d-4837-ad1f-093ee570b6c8n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/CAJkz3e37HmBthtKAe45hgeUC4sGZgtoZZ0D38C00fqXdpsAXTw%40mail.gmail.com.