Home Forums EZY Template Contact form

This topic contains 3 replies, has 2 voices, and was last updated by  Support2 4 months ago. This post has been viewed 195 times

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #10026803

    ov3rflow9x
    Participant

    Hi!
    I need to use 5 fields in the contact form: “nombre” “email” “telefono” “estado” and “mensaje”. Only “nombre, email, telefono and mensaje” are required (i need us those fields in spanish).

    What changes i need to do?

    Thanks!


    #10026818

    Support2
    Keymaster

    Hello :),

    Here is the code you need:

    <form class="contact-form form-style-2" action="php/contact-form.php" method="POST">
    	<div class="contact-form-success alert alert-success d-none">
    		<strong>Éxito!</strong> Su mensaje ha sido enviado a nosotros.
    	</div>
    	<div class="contact-form-error alert alert-danger d-none">
    		<strong>Erro!</strong> Hubo un error al enviar su mensaje.
    		<span class="mail-error-message d-block"></span>
    	</div>
    	<div class="form-row">
    		<div class="form-group col-md-6">
    			<input type="text" value="" data-msg-required="Por favor, escriba su nombre." maxlength="100" class="form-control" name="nombre" id="nombre" placeholder="Nombre" required>
    		</div>
    		<div class="form-group col-md-6">
    			<input type="email" value="" data-msg-required="Por favor, introduzca su dirección de correo electrónico." data-msg-email="Por favor, introduce una dirección de correo electrónico válida." maxlength="100" class="form-control" name="email" id="email" placeholder="E-mail" required>
    		</div>
    	</div>
    	<div class="form-row">
    		<div class="form-group col">
    			<input type="text" value="" data-msg-required="Por favor, introduzca su telefono." class="form-control" name="telefono" id="telefono" placeholder="Telefono" required>
    		</div>
    	</div>
    	<div class="form-row">
    		<div class="form-group col">
    			<input type="text" value="" class="form-control" name="estado" id="estado" placeholder="Estado">
    		</div>
    	</div>
    	<div class="form-row">
    		<div class="form-group col">
    			<textarea maxlength="5000" data-msg-required="Por favor, escriba su mensaje." rows="5" class="form-control" name="mensaje" id="mensaje" placeholder="Mensaje" required></textarea>
    		</div>
    	</div>
    	<div class="form-row mt-2">
    		<div class="col">
    			<input type="submit" value="ENVIAR MENSAJE" class="btn btn-primary btn-rounded btn-4 font-weight-semibold text-0" data-loading-text="Cargando...">
    		</div>
    	</div>
    </form>

    Please, try that and let us know if you need further assistance.

    Kind Regards,

    Rodrigo.


    • This reply was modified 4 months, 1 week ago by  Support2.
    #10026866

    ov3rflow9x
    Participant

    Everything works fine. Thanks.

    Another question: how can i change the background color for the mobile menu.

    Kind Regards.


    #10026872

    Support2
    Keymaster

    Hello,

    Just add the code below in (css/custom.css):

    @media (max-width: 991px) {
        #header .header-nav-main:before {
            background-color: #181d3a;
        }
    }

    * Change the value of background color for an value you wish.

    Please, try that and let us know if you need further assistance.

    Kind Regards,

    Rodrigo.


Viewing 4 posts - 1 through 4 (of 4 total)