I'm am not sure if you using the Elementor Counter Widget is necessary for your design? But you can basically accomplish this with just a form itself and some CSS styling. See this link for an example I whipped up.
https://joneswebdesigns.com/dev/counter/
<script>Change ht4d3 to the field KEY of your number field and #your-counter-id to the ID of the element in the counter that you want to update. I don't know how the elementor counter works so it might need to be adjusted a bit to work with that specifically but the above will take a value from a field whenever it's updated and insert it into another element on the page.
jQuery(document).ready(function($){
$('#field_ht4d3').change(function(){
var val1 = $(this).val();
$("#YOUR-COUNTER-ID").html(val1);
});
});
</script>
I've added a quick demo here: https://development.fdmdigital.co.uk/test-form/
Type something in the text box and it will display in BLUE under the page title (outside of the form).
I also addded a keyup event to the demo so the changes happen as you type but you may not need that in your version.
Please login or Register to submit your answer
Is it possible that there is more than one entry (multiple values) in this form for the current user?
There's 2 fields in this form. One is a checkbox with multiple values, and the second one is a read-only Number field that calculates these values from the Checkbox field.
There's no entries in this form, I want it to calculate automatically when the user interacts with those checkboxes, the Number field is working correctly, but I need to update the Counter Widget with the value from the Number field without having the user to click the Submit button
You'll likely need to create a jquery event for such a thing (something like the onblur event when the field is exited or onkeyup for every time a key on the keyboard releases). That is a bit out of scope for these forums. If you'd like to find paid help, you can check out a list of developers here -> https://formidable-masterminds.com/developers-directory/