I have a query and I’m hoping someone can shed some light on how to go about it, or if anyone has done similar before and has a work around.
I have a form that a user can enter statistical data (numbers) for different periods of the day.
The form has a checkbox function with conditionals set that populates the fields relevant to that period of day for the user to enter the data
When submitted the data is passed through the URL, however I believe that this or the [frm-field-value field_id=4926 1493="[id]"] would be suffice. To pull in the values submitted.
I can get the values but I need to perform a maths calculation, and this is where it’s getting tricky for me.
I can use the math short code to calculate multiple values, but the problem I have is if the user is to select more than one option from the form I get a blank entry in the view.
I need to look for a work around that allows the user to select as many of the options they need to then perform the calculation based on them.
As you can see the + operator is between the conditionals which appears to break the calculation, then not only that if I add the operator within the conditional statement like this:
Then this also breaks if one of the options are not selected from the checkbox
Is there a way that I can use the + operator at the end of each parameter statement based on selections of the checkbox but not the end parameter so it does not break the calculation?
Many thanks Chris