[Question] Builder:Can i load my custom forms for nested form
ababeel-ceo opened this issue · comments
Abdulla commented
Travis Tidwell commented
Yes this can be done. This is the "editForm" for the Nested Form component. You can view it by typing the following in your console when viewing the builder.
Formio.Components.components.form.editForm()
This is a function that can be overridden like so where you can replace the default select dropdown with your own... Maybe something like this would work?
const editForm = Formio.Components.components.form.editForm;
Formio.Components.components.form.editForm = function(...args) {
const currentForm = editForm(...args);
const select = Formio.Utils.getComponent(currentForm.components, 'form');
select.data.url = '.... YOUR OWN CUSTOM ENDPOINT ....';
return currentForm;
}