Limit on custom form field


(Drew Nixon) #1

Hi,

 

I'd like to create a limit on one of my "Tickbox List" fields so that when 400 people have chosen that option, the option will no longer be active or displays an error next to it. Is this possible?

 

I know you can have a "No. of Submission allowed" but that would be for the whole form, I'd like a no. of submissions that including selecting this specific option if thats possible.

 

Regards, Drew


(Nic Hubbard) #2

It isn't possible out of the box with a Custom Form. 

 

But I think there might be some tricky ways you could achieve this. My first thought was to use a Hit Count trigger, and only trigger it if someone has chosen that option, and clicked submit (use JS to trigger it). One that is done, the trigger will log that number. Then on that same form you could nest a Hit Count Listing Page that lists the Custom Form asset. I would probably save that results of the asset listing into a JS var, and then, if that number is equal to or greater than 400 you just use JS to hide that option so no one else can choose it.

 

Sounds a little round-about, but I think it could work.


(Drew Nixon) #3

Hi Nic,

 

Thanks, sounds a little complex for me but good to know that there would be a way of doing this.


(Nic Hubbard) #4

Hi Nic,

 

Thanks, sounds a little complex for me but good to know that there would be a way of doing this.

 

No problem.