Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

How can I make my form fields mandatory?

gioppolino

New Coder
Hello Everyone,
I'm trying to understand how to make the fields of this contact form mandatory. At the moment my friend is receiving emails without text sometimes and he wants to make sure that when he receive an email from the form on the website, there is some copy in it. I can't really find a solution. Can anyone help?

Thanks!

Code:
 <div class="col-md-12 col-lg-6 col-xl-6 col-xxl-6">
        <div class="your-information-section">
            <div class="small-block-title">
                <h2>Your information</h2>
            </div>
            <div class="your-information-list">
                <div class="row">
                    <div class="col-md-6 col-lg-6 col-xl-6 col-xxl-6">
                        <div class="form-group">
                            [text firstname class:form-control placeholder "First Name"]
                        </div>
                    </div>
                    <div class="col-md-6 col-lg-6 col-xl-6 col-xxl-6">
                        <div class="form-group">
                            [text lastname class:form-control placeholder "Last Name"]
                        </div>
                    </div>
                    <div class="col-md-6 col-lg-6 col-xl-6 col-xxl-6">
                        <div class="form-group">
                            [text number class:form-control placeholder "Phone Number"]
                        </div>
                    </div>
                    <div class="col-md-6 col-lg-6 col-xl-6 col-xxl-6">
                        <div class="form-group">
                            [email* email class:form-control placeholder "Email"]
                        </div>
                    </div>
                    <div class="col-md-12 col-lg-12 col-xl-12 col-xxl-12">
                        <div class="form-group">
                            [textarea about class:form-control placeholder "What are you contacting us about?"]
                        </div>
                    </div>
                    <div class="col-md-12 col-lg-12 col-xl-12 col-xxl-12">
                        <div class="form-group contact-note">
                            <label for="exampleInputphoneEmail" class="form-label">Please contact me by:</label>
                            <div class="form-check-list">
                              
                                [checkbox checkbox-999 use_label_element "Phone" "Email"]
                            </div>
                            <div class="form-note">
                                <p>By submitting this form, you agree to our Privacy Policy and Disclaimer</p>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-12 col-lg-12 col-xl-12 col-xxl-12">
                        <div class="submit-button">
                            <span class="btn btn-purple">
                                [submit class:btn class:btn-subscribe "Send Request"]
                            </span>
 

New Threads

Latest posts

Buy us a coffee!

Back
Top Bottom