Saltar navegación

[Cerrado] Exceute a function before loading the form

This support ticket is created hace 2 años, 5 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.

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Nigel hace 2 años, 5 meses.

Autor
Mensajes
#2526269

Dear Sir/Madam,

I completely reviewed the article https://toolset.com/documentation/programmer-reference/cred-api/ but I could not find the API that I wanted.

I have a form, and I want to update some fields in the form before I load it. Is it possible to do?

Best regards,

Kelvin.

#2526841

Nigel
Colaborador

Idiomas: Inglés (English ) Español (Español )

Zona horaria: Europe/London (GMT+01:00)

There isn't a hook that is triggered before the form loads, but you could register a custom shortcode and insert the shortcode near the top of the form: that code would run before the rest of the form is processed.

See https://developer.wordpress.org/plugins/shortcodes/

(Note you can also provide default values for forms to publish posts; edit forms will take existing values of fields and display them in the form.)

El debate ‘[Cerrado] Exceute a function before loading the form’ está cerrado y no admite más respuestas.