Skip Navigation

[Resuelto] Adding my own button for form submit

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

Problem:

The issue here is that the user wanted to add his own CRED submit button to use his own custom styling.

Solution:

Actually you can replace the form submit button with an html submit button like this.

<button type="submit" name='form_submit' class="btn btn-primary">
 Submit
</button>

If you replace the submit button shortcode you can use the html above instead and you should be able to customize the way you like.

This support ticket is created hace 6 años, 10 meses. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Este tema contiene 4 respuestas, tiene 2 mensajes.

Última actualización por ThomasB2891 hace 6 años, 9 meses.

Asistido por: Shane.

Autor
Mensajes
#610721

Hi, is there a way to add my own button (or anchor tag) to a cred form to submit? Is there a js function that can be called onclick that will submit the form?

I'm having trouble making the standard cred button look the way I want. I know I can add a class name but I need to be able to include icons and I'm having trouble doing this with the credit button. I would have much more control if I could add my own HTML button in the cred form.

Is this possible? Thanks

#610853

Shane
Supporter

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hi Thomas,

Thank you for contacting our support forum.

Actually you can replace the form submit button with an html submit button like this.

<input type="submit"  name="form_submit" value="Submit" class="">

If you replace the submit button shortcode you can use the html above instead and you should be able to customize the way you like.

Please let me know if this helps.
Thanks,
Shane

#611092

Shane,

Thanks for the response. That looks like it will work. I'm assuming this work if I use a button tag as well?

Like:

<button type="submit" class="btn btn-primary">
  <i class="icon-user icon-white"></i> Sign in
</button>

Thanks,
Tom

#611108

Shane
Supporter

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hi Thomas,

In order for it to submit the form you need to add this attribute to your button html.

name='form_submit' 

Once that is added your form should start submitting.

Please let me know if it works now.

Thanks,
Shane

#613788

Thanks for the help. That worked perfectly.