Hi @infocade,
This is more likely due to the form options not being synchronized between the front end and backend.
Trying to fill fields with JS can cause errors during submission 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
However, I’m afraid providing the exact code will be outside the scope of support. For that, you’ll need to hire a developer to provide the required custom code for you. WordPress provides a jobs directory here?https://jobs.wordpress.net/
If you need further advice about it, feel free to email us at [email protected] using the following subject.
“Subject: ATTN: WPMU DEV support – wp.org”
Regards,
Nithin