Skip Navigation

[Closed] Exceute a function before loading the form

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.

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 1 year, 11 months ago.

Author
Posts
#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
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00: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.)

The topic ‘[Closed] Exceute a function before loading the form’ is closed to new replies.