I have several fields that are hidden and should only appear when the user clicks the view button next to the first field.
My initial idea would be when the person clicks the green button (after the .newField) it adds the newField class to the next field.
(no problem if the green button gets duplicated, of course if you can leave only the last one is better.)
.c-form .hide {
display: none;
}
.newField {
display: block!important;
position: relative;
}
.c-form .newField:after {
font-family: "Font Awesome 5 Free";
font-weight: 900;
content: "\f138";
font-size: 35px;
cursor: pointer;
color: #1fa050
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script><linkrel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous">
<div class="c-form">
<form id="formsugestoes" method="post" enctype="multipart/form-data">
<h3>Fale conosco</h3>
<input type="hidden" name="setor" value="">
<input type="hidden" name="assunto" value="formsugestoes">
<label class="lado hide newField"><span>Nome: *</span><input class="text" type="text" name="nome" value="" required></label>
<label class="lado hide"><span>E-mail: *</span><input class="text" type="email" name="email" value="" required></label>
<label class="lado hide"><span>Cidade: *</span><input class="text" type="text" name="cidade" value="" required></label>
<label class="lado hide"><span>Telefone:</span><input class="text mask-tel" type="text" name="telefone" value="" required></label>
<label class="lado hide"><span>Mensagem:</span><textarea class="text" name="mensagem" value=""> </textarea></label>
<div><input type="submit" name="enviar" value="Enviar" class="btnEnviar hide lado" /></div>
</form>
</div>