Hello,
I am using an API and I get the response from them. I have one value "status" that I read and I can print with JS. I would like to save that in the DB.
I added a hidden field to the form and tried to change it before saving the array in the DB.
I tried:
1- document.getElementById('status').setAttribute('value',status);
2-$('.hidden').val(status);
3- $('#status').val(status);
none of them worked. Is there any way I can do that with Chronoforms? When I try to debug in the browser it says that cannot set the value of null or that is an invalid expression.
I am using an API and I get the response from them. I have one value "status" that I read and I can print with JS. I would like to save that in the DB.
I added a hidden field to the form and tried to change it before saving the array in the DB.
I tried:
1- document.getElementById('status').setAttribute('value',status);
2-$('.hidden').val(status);
3- $('#status').val(status);
none of them worked. Is there any way I can do that with Chronoforms? When I try to debug in the browser it says that cannot set the value of null or that is an invalid expression.