contact fields go red if the submit button is pressed without text entered.
-
I’m trying to make specific contact fields go red if the submit button is pressed without text entered.
I think the simple CSS is;:required { background: red; }But again, struggling to get the :required` as an identifier in to wordpress html.
[contact-form] [contact-field label="Poker site" type="text"/]Wondering how to do this.
Hope that is clear?The blog I need help with is: (visible only to logged in users)
-
Hi there,
I’m sorry to hear you’re having trouble! Can you clarify exactly what you mean when you say that you are, ” struggling to get the :required` as an identifier in to wordpress html?”
Do you mean that this specific CSS is not clearing up the issue for you, or that it’s simply not saving in WordPress? Or something else?
The better I can understand exactly where you are running into issues, the better I can help!
-
Sorry what I wrote is not clear. Here: http://ppstaking.com/apply-for-staking/
I want some contact form boxes to be required in order to sumbit.
If they are required but do not have the correct text, I want them to go red upon some one clicking submit. I think I can do the code to get the red as stated above, but don’t know what CSS Selector to introduce or use. -
Hi,
It seems like you don’t have any required fields on your contact form. I have been trying to produce a “field required” error on your contact form, but my message is being sent each time.
Can you make some fields required so we can inspect your form?
-
-
Ok great! So that should take care of the red background I suppose?
Glad you got it worked out. Let us know if there’s anything else you need help with.
- The topic ‘contact fields go red if the submit button is pressed without text entered.’ is closed to new replies.