Web Form Builder coding question -...

User 2846309 Photo


Registered User
2 posts

I'm trying to auto-populate the dropdown selection list based on the name field with a little jquery after page load, and that works great except when the form is submitted, it checks the value in the selection list and sees that it isn't included in the original list and gives me the error "[name] doesn't have a valid value." Is there any way to get CoffeeCup to accept the new list values - or direct me to the file that is doing the validation so I can see why it is rejecting the submission? I'm trying to do this all via the html element in the form. Thanks!
User 187934 Photo


Senior Advisor
20,190 posts
Online Now

I use custom code after export to do this on my forms.
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 2846309 Photo


Registered User
2 posts

Thanks for the response Eric. What I'll probably end up doing is changing the field to a text input which is hidden by jquery and replaced with a dropdown which populates the text field. That way the validation still works. The only problem with that is that I can't use display rules based on dropdown items.
User 187934 Photo


Senior Advisor
20,190 posts
Online Now

I use jquery and php ajax request to pull the needed display rules.
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

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.