CDD element value displayed does not change after update() call

I have a CDD element, configured as a dropdown, the value of which is changed by a JS element.update() call. The debugger shows that the update is successful and that the element has the new value, but the value displayed in the form does not change. Elements have both element.value and options.value properties; for a field, the value is available from either, but, for a CDD, the proper value is only available in options.value. The element.update() call only affects options.value.

This suggests to me that Fabrik might be reading the value for display from element.value. As a test, after the setting code:
element.update(newValue);​
I added:
element.element.value = newValue;​
The element then displayed correctly. I would look further, but as I have no idea where Fabrik’s display code is, that would not by easy.

Fabrik4 Gamma1, Joomla 4.2.8, PHP 8.1.16.
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top