I have created a Drupal website with a new page for registration purposes. I would like to have a checkbox list of my provided services (for example back-up user files), with the corresponding prices next to each service.
When multiple checkboxes are checked, the values (in this case, the prices) need to sum up to a total amount. This amount then should be displayed on the page.
How can I sum the amounts associated with the checkboxes?
You have the checkbox value attribute to attach the price amount to a checkbox?
While submitting/processing use js/php logic to add the selected checkboxes.
Update:
options array should be like this