- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Counter of selected options in a Multiple Checkbox Custom Property
SOLVEMar 18, 2020 2:27 PM
Hi there.
Suppose that I have a custom property (Property 'A') with "multiple checkboxes". Is there a way to have another property (Property 'B') containing a counter of how many checkboxes are checked in Property 'A'?
Example:
Property A: classes attended
- Math -> checked
- Physics -> checked
- Chemistry-> NOT checked
- Literature -> NOT checked
- Philosophy -> checked
Property B: number of classes attended
Value = 3
Thanks in advance!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Accepted Solutions
Mar 19, 2020 1:49 AM
There are a few ways to do this:
a) set up a Workflow (requires Marketing Pro) to check each Option in Property A. If an Option is set (e.g. Math) then increment Property B. It's a good idea to set Property B to zero at the start of the workflow.
b) add some Javascript to the page where the Contact fills in the form. Whenever the Muli-checkbox changes count the courses and set a hidden field (Property B) to the count. When the Contact submits the form the hidden field would update in HubSpot.
c) create a HubSpot Integration that watches Property A for a change. The Integration would then call some code to update Property B based on Property A.
Each has pros & cons. They're in order of complexity (and budget).
Let me know if you need me to elaborate.
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content