Support

Account

Home Forums Add-ons Repeater Field Populate fields with values from post object all within repeater field.

Solved

Populate fields with values from post object all within repeater field.

  • In a front end form, lets say I have a repeater field with two columns. (Products and Price). In the first column (products) there is a Post Object select where you can select products (which is a custom post type, each product is a seperate post). When you select a post object/product I would like to fetch the price (custom field) from the selected post/product and have the price being populated in the second column (Price). Anyone have any experience doing something similar? Any help much appreciated!

  • The exact same problem that i’m facing. Do you found a solution ?

  • Yes I did! Using jQuery and WP Rest API I sent the Post Object ID to functions.php where I got and returned the price to jQuery.
    https://gopangolin.com/beyond-admin-ajax-using-wordpress-rest-api/

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.