Hi @lilingg
I hope you are doing well today.
It seems you will need to rely on checkboxes only. Please note radio buttons are not limited by Forminator but by HTML. Can you share with us more details and share some examples of your goal so that we can be on the same page and suggest what will be the best option for you?
Kind Regards,
Kris
Thanks for the swift response, so basically the page that I’ll build will have 2 sections side by side, the form on the left and the order summary on the right.
In the form we have many item groups, each group will have a list of checkboxes, and each checkbox will show the item. I want each checkbox to have 2 values, cost and weight, both of these values will be used to calculate the total cost and the total weight of the entire form and the totals will be displayed in the order summary. Whenever an item is selected, it’ll be displayed as an individual item along with its price in the order summary as well.
I was just wondering whether there’s a workaround to have 2 values in a radio button/checkbox, I was thinking maybe we can add a data attribute for both of these elements so that I can access these values programmatically? What would you suggest?
Thanks again.
Hi @lilingg
Thank you for the explanation:
How do I achieve this since in the plugin each radio button is only allowed 1 value?
This is how are supposed to work, one value for one selected item, you can use a checkbox which allows multiple selections but also one value per selection, however, it allows you to control better your visibility rules.
A workaround here, if the values are fixed, is to use conditionals in the calculation field and show / hide the specific calculation when the radio/checkbox option is selected, but this becomes a bit tricky depending on the form size.
Would it be possible to export your current form https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#import-export and share it using pastebin.com or Google drive?
Best Regards
Patrick Freitas
Hi @lilingg,
We haven’t heard from you in a while, I’ll go and mark this thread as resolved. Note that you can still reply on this topic.
If you have any additional questions or require further help, please let us know!
Best regards,
Laura