Captcha and Submit button - Page 2 -...

User 187934 Photo


Senior Advisor
20,265 posts
Online Now

Add this to the html element.
<style>#fb-submit-button{
display:none;
}
</style>

Seems to all work here.
http://progrower.coffeecup.com/forms/regex-valid-2/
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 2056177 Photo


Registered User
232 posts

Still the same .... you can put anything in the Regex and the form will send. The link one is doing the same as I'm getting. What I am trying to do is for the submit button to remain hidden until the full correct key is put into the Regex and for the button to automatically appear.
Pete.
User 187934 Photo


Senior Advisor
20,265 posts
Online Now

How about now?
http://progrower.coffeecup.com/forms/regex-valid-2/
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 2056177 Photo


Registered User
232 posts

I've put in 3 different numbers and the form would have sent each time without the submit button showing .......
User 187934 Photo


Senior Advisor
20,265 posts
Online Now

How can you send a form without the submit button?
Hit ctrl + f5
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 2056177 Photo


Registered User
232 posts

If you follow the link that you gave me above, put 1 in the Regex field and press enter, the form would have sent without the submit button showing.
What I am trying to do is have the submit button hidden and automatically show only after "*****" has been put into the Regex and for the form to send when Submit is pressed. It's no good if you have to press Enter for the button to show as people would not know to do this.
Thanks again for the help,
Pete.
User 187934 Photo


Senior Advisor
20,265 posts
Online Now

Ok One more time.LOL
http://progrower.coffeecup.com/forms/regex-valid-2/
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 2056177 Photo


Registered User
232 posts

Success!!!!!
How did you do it?
Pete
User 187934 Photo


Senior Advisor
20,265 posts
Online Now

I placed this in a html element.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript">
var jQ = $.noConflict(true);
jQ(document).ready(function(){
jQ('#fb-submit-button').hide();
jQ("input[name='regex1']").keyup(function(){

if (jQ(this).val().match(/[^0-9]/g, '') || jQ(this).val() == "") {

jQ('#fb-submit-button').hide();
jQ('#fb-submit-button').attr('disabled', 'disabled');
}else{
jQ('#fb-submit-button').show('slow');
jQ('#fb-submit-button').removeAttr('disabled');
}
});
});</script>

I removed the conditional from the submit button. My code is the only thing affecting the submit button.
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 2056177 Photo


Registered User
232 posts

Hi Eric,
Thank you so much for taking the time to sort this for me.
This is what now happens with this code.
The submit button is hidden but if you put in a one number, the button appears and pressing it or the enter key would send the form.
What I need is for the submit button to only appear after a specific string of upper and lower case letters plus numbers is inserted into the Regex. Is there a way to do this?
I have tried several ways but with my limited knowledge of code, I don't know enough to do this myself so your help is very much appreciated.
Pete.

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.