• Resolved Vasilis V

    (@vestart)


    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

    (@wpmudevsupport14)

    Hi @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

    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/

    Best Regards,
    Nebu John

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @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

    (@vestart)

    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?

    Plugin Support Kris – WPMU DEV Support

    (@wpmudevsupport13)

    Hi @vestart

    Please email us at: [email protected]
    Subject: ATTN: WPMU DEV support – wp.org

    Please send:
    – Link back to this thread for reference (https://www.ads-software.com/support/topic/forminator-fields-dynamic-prepopulation/) and share with us all details, including forms and snippets.

    Kind Regards,
    Kris

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @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

    Regards,

    Nithin

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @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)
  • You must be logged in to reply to this topic.