# Multi-select Labels with underlying values for Form Validation & submission

**URL:** <https://community.hubspot.com/t/multi-select-labels-with-underlying-values-for-form-validation-submission/92696>\
**Category:** Lead Capture Tools\
**Tags:** enterprise\
**Created:** [October 26, 2023, 8:35pm UTC](https://community.hubspot.com/t/multi-select-labels-with-underlying-values-for-form-validation-submission/92696 "2023-10-26T20:35:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ALevine2](https://avatars.discourse-cdn.com/v4/letter/a/b2d939/32.png) [@ALevine2](https://community.hubspot.com/u/ALevine2)\
**Post date:** [October 26, 2023, 8:35pm UTC](https://community.hubspot.com/t/multi-select-labels-with-underlying-values-for-form-validation-submission/92696/1 "2023-10-26T20:35:57Z")

</div>

has anyone ever created a form that can handle something similar to the following logic:

- user selects from a multi-select list of labels
- each label in the list is associated to a duration in hours, for example item 1 (5 hours), item 2 (6 hours), item 3 (8 hours) and so on.
- the total amount allowed upon form submission is 30 hours, therefore any combination of the multi-select must be = to 30 hours (no more, no less)

can hubspot do this, if so, how?

thank you

---

<div class="post-metadata">

**Author:** ![DianaGomez](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dianagomez/32/48035_2.png) [@DianaGomez](https://community.hubspot.com/u/DianaGomez)\
**Post date:** [October 26, 2023, 8:42pm UTC](https://community.hubspot.com/t/multi-select-labels-with-underlying-values-for-form-validation-submission/92696/2 "2023-10-26T20:42:08Z")

</div>

Hi @ALevine2 ,

I appreciate your question, it’s a great one!

I would like to invite some of our experts to see if they have any ideas for you or if they are required to create something similar and can offer suggestions to help you out.

Hi @deepikaverma, [@Shadab\_Khan](https://community.hubspot.com/t5/user/viewprofilepage/user-id/513582), [@Mike\_Eastwood](https://community.hubspot.com/t5/user/viewprofilepage/user-id/9259)., do you have any advice for @ALevine2?

Thank you for your valuable input and contributions! 😊

Best,

Diana

---

<div class="post-metadata">

**Author:** ![Mike\_Eastwood](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mike_eastwood/32/70075_2.png) [@Mike\_Eastwood](https://community.hubspot.com/u/Mike_Eastwood)\
**Post date:** [October 26, 2023, 8:50pm UTC](https://community.hubspot.com/t/multi-select-labels-with-underlying-values-for-form-validation-submission/92696/3 "2023-10-26T20:50:27Z")

</div>

Hi @ALevine2

Do you mean “user” as someone in your organization? Or “user” as in a visitor to a Landing Page?

For a HubSpot User then the new [CRM Customisation](https://www.hubspot.com/products/crm/customization) is ideal.

For a website visitor I would create a [Custom Module](https://knowledge.hubspot.com/design-manager/create-and-edit-modules), that [customizes the embed code](https://legacydocs.hubspot.com/docs/methods/forms/advanced_form_options) for a HubSpot Form, then the Custom Module holds the JavaScript to add up the hours and validate the form to ensure your business rules are met.

Sorry if this sounds a bit geeky (it is) I don’t get out much ;o)

Mike

p.s. thank you for the mention @DianaGomez

Here to learn more about HubSpot and share my HubSpot Knowledge. I’m the founder of [Webalite](https://www.webalite.com?utm_campaign=community-forum&utm_source=community&utm_content=signature) a Gold HubSpot Partner Agency based in Wellington, New Zealand and the founder of **Portal-iQ** the world’s first automated [HubSpot Portal Audit](https://portal-iq.com?utm_campaign=community-forum&utm_source=community-forum&utm_content=signature) that helps you work smarter with HubSpot.

---

<div class="post-metadata">

**Author:** ![ALevine2](https://avatars.discourse-cdn.com/v4/letter/a/b2d939/32.png) [@ALevine2](https://community.hubspot.com/u/ALevine2)\
**Post date:** [October 26, 2023, 8:54pm UTC](https://community.hubspot.com/t/multi-select-labels-with-underlying-values-for-form-validation-submission/92696/4 "2023-10-26T20:54:01Z")

</div>

Thanks [@Mike\_Eastwood](https://community.hubspot.com/t5/user/viewprofilepage/user-id/9259) and @DianaGomez for the fast response.

yes, to clarify i was referring to a website visitor (not an internal user) and was really hoping to avoid having to customize the form.

---

<div class="post-metadata">

**Author:** ![Mike\_Eastwood](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mike_eastwood/32/70075_2.png) [@Mike\_Eastwood](https://community.hubspot.com/u/Mike_Eastwood)\
**Post date:** [October 26, 2023, 9:00pm UTC](https://community.hubspot.com/t/multi-select-labels-with-underlying-values-for-form-validation-submission/92696/5 "2023-10-26T21:00:57Z")

</div>

Thanks for the clarification @ALevine2

We build the Custom Module that loads a normal HubSpot Form (in Raw HTML).

The Custom Module holds the JavaScript e.g. form validation, adding up hours.

That means you can edit the Form as required, or create other forms using the same Custom Module.

Let me know if you’d like to discuss your Form.

Mike
