I need to display the result of calculations not immediately under the form, but in another place, for example in a neighboring block. How can I do this?
gurovworksgmail-com Posted new comment March 17, 2023
Insert the code into the calculator field Formula
See the screenshot https://share.cleanshot.com/WBN3j5mC
gurovworksgmail-com Posted new comment March 17, 2023
Спасибо, извините, что сразу не понял)
Hi.
You can set the result where you need it. For example:
- Set the custom attribute class for the block.
- Insert the result into the block using the function innerText
let customEl = document.querySelector('.breadcrumb'); customEl.innerText = x[1];
CalcHub Answered question March 16, 2023
Простите, разобрался, код нужно вставлять не в шаблон страницы, а в редактор кода плагина) Еще раз приношу свои извинения.