Problem:
I want to auto-fill a hidden Toolset form field (cast-position) with the value of the ?pos URL parameter + 1, so that each new character entry gets the next position in the list. Using cred_before_save_data prevented the form from saving.
Solution:
Keep the field hidden and not required, then use the cred_save_data hook (after validation) to update the meta field
Or alternatively, use front-end JS with the form’s JS editor to populate the hidden input:
Relevant Documentation:
https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data
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.
Ce sujet contient 3 réponses, a 1 voix.
Dernière mise à jour par Il y a 2 weeks, 2 days.
Assisté par: Christopher Amirian.