Get MetaBoxes from a product or post in jetformbuilder, and use them for a calculated field
Juan Armando Ferrer SanchezPublished on Updated
A cotinuacion share a small solution that I found apartir of several problems to obtain metacampos of a product woocomcerce or a post, where they managed to get the necessary data but these did not work in the calculated fields, digging a little discovered that did not take them because it did not detect the user insertion event, so I created a code that emulates that event and thus worked correctly
Frequently Asked Questions
Why don't meta fields work in a JetFormBuilder calculated field?
According to the author, the data was retrieved correctly, but the calculated field did not pick it up. The calculated field did not detect a user insertion event, so it never read the values.
How can I make a calculated field read values that were set automatically?
The author wrote code that emulates the user insertion event. With that event triggered, the calculated field detected the values and worked correctly.
Can I get meta fields from a WooCommerce product in JetFormBuilder?
Yes. The author describes getting the needed meta fields from a WooCommerce product or a post. The article does not include the code itself, so it only explains the approach.


