automatically update field

150 views
Skip to first unread message

mohamed maghrabi

unread,
May 12, 2021, 9:46:58 PM5/12/21
to TiddlyWiki

Hi,

is it possible to have one field change value based on another value entered in another field

so i am thinking similar to excell you can say if cell x = 1  then current cell =y

sorry if i sound naive:)

Mohammad Rahmani

unread,
May 12, 2021, 11:47:26 PM5/12/21
to tiddl...@googlegroups.com
  • YES
Example i
tiddler A has field fdx and fdy and you like fdy gets the value from fdx dynamically 
then put this in field fdy:  {{!!fdx}}

  Example i  
tiddler A has field fdx and tiddler B has fdy and you like fdy gets the value from fdx dynamically 
then put this in field fdy of tiddler B:  {{A!!fdx}}



Best wishes
Mohammad


--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/3ec88fc2-2c37-4516-a7da-cc6f08186afbn%40googlegroups.com.

Soren Bjornstad

unread,
May 13, 2021, 7:57:30 AM5/13/21
to TiddlyWiki
Just to be clear, this doesn't actually set the value of the field B to the value of field A…it sets the value of field B to a reference to the value of field A. This is exactly how it works in a spreadsheet too, so that's probably what you're looking for. There are also ways to create an action that will permanently set the value of field B instead if that's more useful.

And one proviso, because this does a transclusion, you won't be able to use the field B as the value of an attribute and have it work as expected. Like suppose field A contained a list of tiddlers and you wanted to display them; you might try:

<$list filter={{!!fieldB}}>...</$list>

If you do that the filter will just get set to the literal text "{{A!!fdx}}" and you won't see anything. (There are ways to get around this, but I've probably said more than you need already.)

PMario

unread,
May 13, 2021, 9:11:50 AM5/13/21
to TiddlyWiki
Hi,
If you need spreadsheet-like calculations you may have a closer look at: https://chronicles.wiki/TiddlyWikiFormula  Especially the "Spreadsheet Prototype" tiddler
-mario

paulgilbert2000

unread,
May 14, 2021, 7:37:50 PM5/14/21
to TiddlyWiki
Hi Soren,
.

ok .all i am really after , is to have a field automatically populate a value "urgent"  once a  previously entered date value  in field B  is 3 days away.

so i am trying to flag task tiddlers that are due, hope this makes sense

Joshua Fontany

unread,
May 15, 2021, 4:16:27 PM5/15/21
to TiddlyWiki
You could setup your UI as 2 lists, one list to filter the Urgent ones first (with different CSS styling), then another list for non-Urgent tiddlers. You cannot change data in fields automatically, data updates require user interaction (a button with actions, a drag-and-drop, etc).

Best,
Joshua Fontany

Soren Bjornstad

unread,
May 15, 2021, 7:17:27 PM5/15/21
to TiddlyWiki
Is there any particular reason you need it to change a field, specifically? As Joshua pointed out, the normal way to do this in TiddlyWiki is to use a filter at the time you want to display whether the task is urgent. Can you explain how you use these task tiddlers? For example, are they in a list, and the items should have an "urgent" marker next to them if urgent?

paulgilbert2000

unread,
May 16, 2021, 3:57:18 PM5/16/21
to TiddlyWiki
Hi,

Ok what i really wanted is to have a field populate a value automatically via action set field , which now i understand cant be done, however i did find a solution, as the timers /alarms widget was just updated to have action widgets triggered once an alarm reached its due date, which is exactly what i needed

Reply all
Reply to author
Forward
0 new messages