Reference Field Values That are Dynamically Updated

44 views
Skip to first unread message

Matthew Potter

unread,
Dec 27, 2019, 6:04:57 PM12/27/19
to TiddlyWiki
My Patient wiki is coming along nicely,I very much appreciate the help from the community

my next problem seems to not exist in the documentation either.

I want to reference a dynamically updated field value to reveal based on gteq (greater than equal to)

this can be achieved statically by manually making the statement like this 

<$reveal type="gteq" state="Patient-Vitals!!blood-pressure" text="120/80">

<a class="green">PASSED - Your blood pressure is good</a> 
</$reveal>


The trouble is the ideal blood-pressure ranges changes with the age of patients, so I would want to reference another field from this like this

<$reveal type="gteq" state="Patient-Vitals!!blood-pressure" text="!!blood-pressure-tests">

obviously this is wrong, can anyone offer any suggestions?

Thank you

Eric Shulman

unread,
Dec 27, 2019, 7:15:55 PM12/27/19
to TiddlyWiki
On Friday, December 27, 2019 at 3:04:57 PM UTC-8, Matthew Potter wrote:
The trouble is the ideal blood-pressure ranges changes with the age of patients, so I would want to reference another field from this like this
<$reveal type="gteq" state="Patient-Vitals!!blood-pressure" text="!!blood-pressure-tests">
obviously this is wrong, can anyone offer any suggestions

To use a field value as a parameter, use {{...}} instead of double-quotes.  Thus:

 <$reveal type="gteq" state="Patient-Vitals!!blood-pressure" text={{!!blood-pressure-tests}}>

-e

Matthew Potter

unread,
Dec 27, 2019, 7:42:14 PM12/27/19
to TiddlyWiki
Thanks so much Eric 
Reply all
Reply to author
Forward
0 new messages