Title: Forminator Fields Dynamic Prepopulation
Last modified: January 31, 2025

---

# Forminator Fields Dynamic Prepopulation

 *  Resolved [Vasilis V](https://wordpress.org/support/users/vestart/)
 * (@vestart)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/forminator-fields-dynamic-prepopulation/)
 * Hello there,
 * I am currently creating an enrollment form for courses, that I have created as
   wp products on my backend. I have succesfully managed with custom code to populate
   the frontend of the forminator form with data collected from my products (attibutes,
   variable prices etc.) I now need to make sure that I will be able to set up a
   checkout in the form and not a redirection to the cart, and as far as the backend
   of my form fields is concerned, when I try to submit a test form i get the *Error:
   Your form is not valid, please fix the errors! * and under the Select Field that
   has been populated with the products from my backend I get the error *Selected
   value does not exist.* This probably happens since I haven’t added the products
   in the forminator fields, instead of that I have added the products with custom
   code snippets js and php.

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Support [Nebu John – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport14/)
 * (@wpmudevsupport14)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/forminator-fields-dynamic-prepopulation/#post-18278444)
 * Hi [@vestart](https://wordpress.org/support/users/vestart/),
 * I hope you are keeping well and thank you for reaching out to us.
 * Could you please share an export of the form along with the custom code used 
   to populate the select field via Google Drive or Dropbox?
 * I hope the following guide comes in handy: [https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#import-export](https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#import-export)
 * We can take a look and try to assist in getting the form to work. However, please
   note that custom code falls outside our support scope, and you may need to hire
   a developer for this. WordPress provides a jobs directory here: [https://jobs.wordpress.net/](https://jobs.wordpress.net/)
 * Best Regards,
    Nebu John
 *  Plugin Support [Amin – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support2/)
 * (@wpmudev-support2)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/forminator-fields-dynamic-prepopulation/#post-18294404)
 * Hello [@vestart](https://wordpress.org/support/users/vestart/)
 * We haven’t heard from you in some time, so I will mark this thread as resolved.
   If you have any more questions or need further assistance, please let us know!
 * Kind Regards,
    Amin
 *  Thread Starter [Vasilis V](https://wordpress.org/support/users/vestart/)
 * (@vestart)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/forminator-fields-dynamic-prepopulation/#post-18295618)
 * hello and sorry for delaying my reply, i can send you both the forms source code
   and the snippets that i have created in order to make my form dynamic. how should
   i send them to you?
 *  [Kris – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport13/)
 * (@wpmudevsupport13)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/forminator-fields-dynamic-prepopulation/#post-18296944)
 * Hi [@vestart](https://wordpress.org/support/users/vestart/)
 * Please email us at: [wpsupport@incsub.com](https://wordpress.org/support/topic/forminator-fields-dynamic-prepopulation/wpsupport@incsub.com?output_format=md)
   
   Subject: ATTN: WPMU DEV support – wp.org
 * Please send:
   – Link back to this thread for reference ([https://wordpress.org/support/topic/forminator-fields-dynamic-prepopulation/](https://wordpress.org/support/topic/forminator-fields-dynamic-prepopulation/#post-18295618))
   and share with us all details, including forms and snippets.
 * Kind Regards,
   Kris
 *  Plugin Support [Nithin – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport11/)
 * (@wpmudevsupport11)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/forminator-fields-dynamic-prepopulation/#post-18304185)
 * Hi [@vestart](https://wordpress.org/support/users/vestart/),
 * The form validation error you’re encountering is likely due to the form options
   not being synchronized between the frontend and backend.
 * Trying to fill the select field with JS will show the same error because the 
   field doesn’t have the same option available on the backend.
 * To resolve this, you’ll need to fill in the form’s options on the backend as 
   well. The Forminator API provides a method to update form field options programmatically,
   which can help you achieve this.
 * A general approach you can follow is to utilize the **update_form_field()** method
   to update field options in the backend. This ensures that the field options are
   correctly recognized by the form’s validation system, then Identify the form 
   and field IDs and generates dynamic options to update the form field.
   You can
   refer to this doc for more info:[https://wpmudev.com/docs/api-plugin-development/forminator-api-docs/#method-update_form_field](https://wpmudev.com/docs/api-plugin-development/forminator-api-docs/#method-update_form_field)
 * Regards,
 * Nithin
 *  Plugin Support [Nithin – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport11/)
 * (@wpmudevsupport11)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/forminator-fields-dynamic-prepopulation/#post-18324221)
 * Hi [@vestart](https://wordpress.org/support/users/vestart/),
 * Since we haven’t heard from you for a while. I’ll mark this thread as resolved
   for now. Please feel free to re-open this thread if you need any further assistance.
 * Regards,
 * Nithin

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Forminator Fields Dynamic Prepopulation’ is closed to new replies.

 * ![](https://ps.w.org/forminator/assets/icon-256x256.gif?rev=3443182)
 * [Forminator Forms – Contact Form, Payment Form & Custom Form Builder](https://wordpress.org/plugins/forminator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/forminator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/forminator/)
 * [Active Topics](https://wordpress.org/support/plugin/forminator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/forminator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/forminator/reviews/)

 * 6 replies
 * 5 participants
 * Last reply from: [Nithin – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport11/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/forminator-fields-dynamic-prepopulation/#post-18324221)
 * Status: resolved