I want to send an email to admin after a button is clicked.
I have custom slide bars with extracted values from js code. Also I have some text inputs and a button.
Everything should act like a contact form, but except the fact that I’m not using “contact form” block from builder.
Is there any possible way to make a kind of array with custom fields and values. And after a click to initiate a form submission?
Or should I use third-party server and post a request via ajax to it? But the first method is prefered (in order to use admins’ emails predefined in control panel)
Values from sliders are sent like that
connectSlider.noUiSlider.on('update.one', function () {
var x = Math.round(connectSlider.noUiSlider.get());
window.parent.postMessage(x, "*");
});