Hi All,
There seems to be a delay to dmx functions, which is preventing certain behaviours/actions being implemented. For example, for conditional field (dmx-if), I am unable to chain them (i.e. have a conditional field be conditional on another object in a conditional field). Any way to get around this please? I need to have multiple conditional areas on my page.
It’s similar with class toggle as well. my javascript doesn’t detect the class being “activated” until the next action (i.e. doesn’t work when I run the javascript from the same object that has the class toggle, only if I trigger the javascript on the next object). I managed to get around it for my use case by activating it on the next object. However, the first issue I haven’t figured out a way to get around.
Any ideas? Is this normal behaviour for dmx functions?
UPDATE 1: I managed to figure out a workaround, by triggering an action to update a variable and linking the conditional region to that variable instead. However, this is a bit clunky and introduces more code. Would it be possible to make the dmx function update immediately in future Wappler releases?
Last updated: