AlexTCGPro
Member
Hey!
I have a calc element that's dependent of a databasejoin element.
The value of the databasejoin element is set with a parameter in the url.
I have no issue setting the value through javascript with
However the 'change' trigger doesn't work. Which code should I use?
I have a calc element that's dependent of a databasejoin element.
The value of the databasejoin element is set with a parameter in the url.
I have no issue setting the value through javascript with
Code:
var url_string = window.location.href;
var url = new URL(url_string);
var form = Fabrik.getBlock('form_1');
var $value= url.searchParams.get("value");
form.formElements.get('f_payments___dbjoin').update($value);
document.querySelector("#f_payments___dbjoin").fireEvent('change');
However the 'change' trigger doesn't work. Which code should I use?