Skip to main content
If you are organizing essential services or emergency response to COVID-19, activate your free account


responded to How to display blog posts in random order? with completed
posted 2019-04-23 00:49:09 -0700
responded to How can I delete old obselete email blasts? with submitted
posted 2019-04-19 01:59:36 -0700
responded to How can I merge tags? with completed
posted 2019-03-08 02:14:43 -0800
responded to Set address used as primary address with submitted
posted 2019-02-27 03:58:50 -0800
responded to How to let users correct their email then resend them activation email ? with completed
posted 2019-02-08 02:45:44 -0800
commented on Limit the number of tickets a user can purchase
Andrew McLean offered this solution to the problem:

I’ll answer my own question. If you want to limit people to selecting a single ticket, then it’s probably better to use a checkbox as the input element.
For my application I wanted to have multiple ticket types, but only let the user choose one, I did that by adding a bit of JavaScript to the onclick attribute of the input tag. The way the code works is that if you click on the checkbox, any other inputs of class “ticket” are unchecked.

<div><strong><input type=“checkbox” class=“ticket” name=“event_ticket_level3” value=“1” onclick=“$(‘input.ticket’).not(this).prop(‘checked’, false)”> £10.00 Saturday and Sunday (Full Price)</strong></div>

<div><strong><input type=“checkbox” class=“ticket” name=“event_ticket_level2” value=“1” onclick=“$(‘input.ticket’).not(this).prop(‘checked’, false)”> £5.00 Sunday Only (Full Price)</strong></div>

<div><strong><input type=“checkbox” class=“ticket” name=“event_ticket_level1” value=“1” onclick=“$(‘input.ticket’).not(this).prop(‘checked’, false)”> £5.00 Saturday Only (Full Price)</strong></div>

Thanks for sharing, Andrew.
posted 2018-10-04 02:32:45 -0700
responded to Liquid request. Variables with completed
posted 2018-09-11 00:50:53 -0700
responded to Are tag fields merged when merging two profiles using "potential duplicates" option? with completed
posted 2018-09-07 02:53:09 -0700
responded to Is there an option to mass update from an old point person to a new point person? with completed
posted 2018-09-06 02:34:07 -0700