Conditioning an element on a form...

User 2869370 Photo


Registered User
4 posts

My web form is used to allow people to register for a convention. One of the items for which registrants can sign up will be free to the first 30 registrants and $10 for each registrant thereafter. The Form Builder does not provide this capability. However, perhaps I can modify the code produced by Form Builder to allow me to track the number of registrants for this particular item and, if there are fewer than 30 registered, indicate no charge and, if there are 30 or more registered, indicate the $10 charge. Can anyone provide any guidance or direction to help me accomplish this?
User 10077 Photo


Senior Advisor
1,067 posts

Can you post a link to the form so we can view > source and look at the form code?
How-To Instructions for Coffeecup Users (tutorials, examples, and downloads)
http://usconsumernet.net/help-for-coffe … -users.php

Personal & Specialized Help for Coffeecup Users
Email me at cchelp@uscni.org or call 865-687-7698
User 2869370 Photo


Registered User
4 posts

You'll find the form at: http://merregistrar.coffeecup.com/forms … istration/

The particular item of interest is indicated as "201: North Carolina Transportation Museum."
User 187934 Photo


Senior Advisor
19,126 posts
Online Now

Hi Kirk,
Are you using a myql database to keep track of the form results?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2869370 Photo


Registered User
4 posts

Hi Eric,

Thanks for your reply. No, I am not using a database. So far, the CSV file produced by the registration process and provided by CoffeeCup has met my needs, but I figure that it is not going to get me through my current problem. I'm not very familiar with databases, but I'm certainly willing to learn. Any guidance you can provide will be much appreciated.
User 187934 Photo


Senior Advisor
19,126 posts
Online Now

I can work with a csv file. Give me a bit to do some testing.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 187934 Photo


Senior Advisor
19,126 posts
Online Now

Sorry for the delay but I see your form is hosted on Coffeecup. Is it always going to be hosted there or is it only for testing? I can't do the customized php code if it's on S-Drive.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2869370 Photo


Registered User
4 posts

Yes, for now my only option is to host the form on CoffeeCup. However, given that I would very much like to have some additional capability that, as you’ve indicated, requires PHP, I will inquire of my organization’s webmaster about other options for hosting the form. I’ll get back to you soon.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.