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

4 replies

null
    • Ninox developer
    • Fabio
    • 5 yrs ago
    • Reported - view

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

    Thanks!

     

    Fabio

    • Mconneen
    • 5 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)

    • Dr_HH
    • 5 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)

    • Ninox developer
    • Fabio
    • 5 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

Content aside

  • 5 yrs agoLast active
  • 4Replies
  • 1853Views