Skip Navigation

[Resolved] Use FooEvents custom field in Form

This thread is resolved. Here is a description of the problem and solution.

Problem:

How to save Forms Generic field value into database?

Solution:

Shortcode [cred_generic_field] does not save the value into database by default, please try to add parameter "persist" into it, and test again, for example:

https://toolset.com/forums/topic/use-fooevents-custom-field-in-form/#post-2330609

Relevant Documentation:

This support ticket is created 3 years, 2 months ago. 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.

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

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by martinU 3 years, 1 month ago.

Assisted by: Luo Yang.

Author
Posts
#2330125

Tell us what you are trying to do?
I want create edit form for WooCommerce product, where custom fields from FooEvents will be used.
When I load non-types and add it to form it just display content of FooEvents fields.
When I use generic field with name of FooEvents field it shows content bit didn't save edited content.
I also try to create Toolset field for product with unique name, but it did not worked.
Have you any help how to add these field to Product Post Form ?
Or how to format it in Expert Form mode ?

Also I cannot find Product Gallery fields in Toolset Form fields.
How to edit Product Gallery using cred form ?

Thanks

Is there any documentation that you are following?
No. Just trying to find similar things here.

Is there a similar example that we can see?
hidden link
This is link to product which is Event. There is small Edit Cred Form in red area where WooCommerceEventsLocation field is in Generic field, but saving Location does not work.
What is the link to your site?
hidden link

#2330609

Hello,

I assume we are talking about shortcode [cred_generic_field], it does not save the value into database by default, please try to add parameter "persist" into it, and test again, for example:

[cred_generic_field ...]
{
...
"persist":1
}
[/cred_generic_field]

Toolset Forms plugin does not support Woocommerce Product Gallery field, there isn't such kind of built-in feature, you might consider custom codes, for example below thread:
https://toolset.com/forums/topic/multi-image-form-post/page/2/#post-1151131
Which is using a repeating image field to upload the images, after user submit the form, use custom codes to save values into Woocommerce Product Gallery field

#2330679

My issue is resolved now. Thank you!