0

Colour Script in field

How  do i make a field " Allergies"  show the  data entered  in red (eg)  if  blank should  be white as  usual  . so if a patient is allergic to  say sulphur the n this  info  will pop up in rd thanks

4replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
    • Fabio
    • noCodeApp
    • Fabio
    • 3 yrs ago
    • Reported - view

    Hello... Could you be more specific about how your fields and tables are?

    Thanks!

     

    Fabio

    Like
    • Mconneen
    • Mconneen
    • 3 yrs ago
    • Reported - view

    Use the styled object in a formula..   something like. (code not tested.. ) 

    assume you have a date entry field called alergeyEntryDate

    styled(alergeyEntryDate if alergeyEntryDate then "red" else "white" end)

    Like
    • Dr HH
    • Dr_HH
    • 3 yrs ago
    • Reported - view

    The  field is set as  text . And u type in an allergy if  the  patient has one . What  I need to happen is tha tthe text must  be set  to red .the table is a single  table (not  subtables  or so)

    Like
    • Fabio
    • noCodeApp
    • Fabio
    • 3 yrs ago
    • Reported - view

    Let's try to start with a model. Take a look at this database and tell me if this is close to what you need:

     

    https://www.dropbox.com/s/0nzgcpeyscfq5mz/Allergies.ninox?dl=0

     

    Fabio

    Like
Like Follow
  • 3 yrs agoLast active
  • 4Replies
  • 1834Views