0
I wonder how I can change the name and the property of a button from the choice of an input (radio button).
<h3>Criar novo usuário</h3>
<p></p>
<form class="m-t" role="form" action="login.php" method="post">
<div class="form-group">
<input type="text" class="form-color-custom form-control" placeholder="Primeiro nome" required="" name="nome">
</div>
<div class="form-group">
<input type="text" class="form-color-custom form-control" placeholder="Sobrenome" required="" name="sobrenome">
</div>
<div class="form-group">
<input type="text" class="form-color-custom form-control" placeholder="Telefone" required="" id="telefone" maxlength="15" name="telefone">
</div>
<div class="form-group">
<input type="email" class="form-color-custom form-control" placeholder="Email" required="" name="email">
</div>
<div class="form-group">
<input type="password" class="form-color-custom form-control" placeholder="Senha" required="" name="password">
</div>
<div class="form-group">
<input type="password" class="form-color-custom form-control" placeholder="Confirmar senha" required="" name="password">
</div>
<div class="form-group">
<div class="i-checks">
<label style="float: left;">
<input type="radio" value="usuario" name="tipo-parceiro"> <i></i> Usuário parceiro
</label>
</div>
<div class="i-checks">
<label style="float: right;">
<input type="radio" value="grupo" name="tipo-parceiro"> <i></i> Grupo parceiro
</label>
</div>
</div>
<button id="bnt-novo" type="submit" class="btn btn-primary block full-width m-b" style="margin-top: 17%;">Criar novo</button>
</form>
If Partner User is selected the form is sent normally, but if Partner Group is selected, you must have a new screen with the partner list I receive via JSON. And the button must change from Create New for List of Groups.
That’s not checkbox, that’s a radio button :)
– Sam
Thanks for the correction. I will change the text.
– Marcus Botelho