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 3 weeks 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 3 weeks 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
John Lyons replied 2 weeks ago

Thank you. I have looked through the documentation. I am able to easily display an entire formidable form based on the ID of any formidable form. However, I want display the value inside a specific field, or rather, the value of the Field ID. Looking through more documentation, it appears one can get the field ID with [frm-field-value field_id=x], but whenever I plug in the field ID, nothing shows up. Are there any mock example you could provide to help figure out how to display information inside of input fields in Formidable Forms?

Rob LeVineRob LeVine replied 2 weeks ago

What you are trying to do is accomplish by using jQuery. The frm-field-value shortcode fills in a value when the form is initially displayed. What you're trying to do is work with the data after the page is displayed.

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