How to get single checkboxed value and do things with it

By: John Lyons | Asked: 11/23/2024
ForumsCategory: Code HelpHow to get single checkboxed value and do things with it
John Lyons asked 6 hours ago

Hello everyone!   I am attaching a photo below for illustration of my problem. The red circle is the checkboxed value. If any of the checkboxes are ticked, I want the text value associated with the tick to be displayed in the "Outputted Checked Text Values". (If both checkboxes are ticked, I want the outputted Text Values to output something like Product1, Product2). The same goes for the Numbered values for the blue Circle. The Number1 value should be outputted to "Outputted Checked Numbers," if Product1 is clicked. (If one ticks multiple checkboxes, the numbers will be added up as a total inside of the Outputted Checked Text Values)   Is this possible? If I tick Product2, is there a way to display both the value1 "Product2" inside of the Outputted Checked Text Values and also the value2 of "535" inside of the field Outputted Checked Numbers?

Attachments
1 Answers
Rob LeVineRob LeVine answered 5 hours ago
It's all possible with some simple jQuery custom code. You can either Google for something like "jQuery set get values from elemnents" or look at the Javascript examples page on the FF site

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right