Set tiddler X field Y value Z

Apologies to this group. I know I’ve asked this before but can not find the answer from that time.

I want to set tiddler X field Y to the value Z WITHOUT user input to trigger an action widget (ie button press).

How can this be done?

Is there any mechanism to intercept events like, rendering/opening/closing a tiddler, so that user code can be inserted into the process?

I know that a viewtemplate sort of does this for rendering but as far as I am aware, I can not insert code, like tiddler X field Y value Z into it without an action trigger.

bobj

I asked a similar question a while ago and got a useful looking answer. Before I had a chance to try it, I moved on from that project, and never did have a go, so I don’t know how easy it would be. It’s clear that it would help to have JS experience.

That was in this thread:

i have used the trigger widget plugin made by @pmario for things like this (for me it was setting a read-only mode when a certain tiddler is opened). it’s a simple-to-use widget that executes all the actions in its actions parameter when it is rendered or updated. be careful not to make infinite loops that can brick your wiki :slight_smile:

it also looks like a core implementation of “background actions” is underway that will allow things to trigger on the results of a filter changing (live):

Thanks @Scribs the plugin looks interesting

bobj

1 Like