Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the Existing Resource Fields section to Form Builder in React #4163

Closed
NoeliaEspada opened this issue Jun 23, 2021 · 1 comment
Closed

Comments

@NoeliaEspada
Copy link

I want to add the Existing Resource Fields section to my Form Builder and I find this solution that seems to be just what I need: #1103 (comment) but I do not know how or where can I implement it on my React App (react-formio 4.3.0).
Thanks in advance.

@NoeliaEspada
Copy link
Author

I finally found a solution for this problem. I add the options prop to the FormEdit React tag passing the following object:

{ base: http://111.111.1.11:123, /***Base Url of your Formio location***/ project: http://111.111.1.11:123/project, /***Base Url of your Formio location plus literally the word project***/ resourceTag: null, /***Name Tag of the resources you want to display***/ builder: null }

And then I modified the parameters of the constructor of the Formio Object of the WebformBuilder page of the FormioJS library:

var formio = new _Formio.default(_Formio.default.projectUrl); /***Old line***/
var formio = new Formio( _this.options.project, {'base': _this.options.base}); /***New line ***/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant