You are viewing limited content. For full access, please sign in.

Question

Question

selecting multiple radio buttons

asked on August 27, 2024

I have not built a multi selection radio button on forms 11+ yet.  On the previous versions I could select multiple radio buttons which would show hidden fields based on the radio selections.

ie.... (X) Car   (X) Hotel   ( ) Flight  

Then it would show me BOTH Car and Hotel currency fields but not Flight.  

 

Currently it shows up and populates then when another radio is selected they will hide again.  BUT the total of all still get populated and added in the cost.  

Just odd how they disappear and dont show once populated.

Design.PNG
Travel.PNG
Lodging with addition.PNG
Design.PNG (17.58 KB)
Travel.PNG (13.49 KB)
0 0

Answer

SELECTED ANSWER
replied on August 27, 2024

HTML radio inputs are not meant to be multi-selection.

HTML input type="radio" (w3schools.com)

If you want multiple selections, you should use checkboxes; you could use CSS to make them look like radio buttons, but that is counterintuitive based on standard web UI behavior.

HTML input type="checkbox" (w3schools.com)

Radio buttons are an either/or input type and I would not be surprised if there was unexpected behavior caused by trying to make them behave like checkboxes.

 

Additionally, if you're using calculations to sum up the total, hidden values are not automatically excluded from calculations while you are filling out the form.

You would need more complex calculations to ensure the values from those input fields are only factored into the total when the corresponding box is checked.

For example,

=SUM(IF(Checkbox.Option1,Field1_Cost,0),IF(Checkbox.Option2,Field2_Cost,0))

When you have checkboxs on a form, you can reference them for TRUE/FALSE in calculations, so in the example above it only adds Field1_Cost to the total if Option1 is checked, and so on.

If this is part of a table/collection, the calculations would be a little more complex.

1 0

Replies

replied on August 27, 2024

You are awesome!  Thank you, that explained it perfectly and identified my giant brain fart!   Also thank you for the "Option" part, that helps on another form!

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.