Comments (8)
It should not be sending requests to the API if you just set just the form JSON, so this would require further investigation. Is it possible to create a JSFiddle showing the issue and that would expedite our investigation?
from ngformbuilder.
Actually, I can refer to the example provided in this repository's README: https://codepen.io/travist/pen/xVyMjo
Maybe I am just not getting something, but it appears that the same behavior occur here. The <form-builder/>
directive are only provided the form
attribute, but still, I can see that there is a request being sent. In fact, there seem to be two requests being sent; one returns 401 and one returning 204:
Maybe you could check if the same happens for you?
from ngformbuilder.
We will add this item to our planning to discuss and maybe prioritize resolution. Stay tuned.
from ngformbuilder.
We believe this is just our "Existing Resources" that is querying to determine what resource fields should be added. If you want to remove this feature, it will require a change from the community to add an option to disable it. We need it for the Form.io platform.
from ngformbuilder.
Could you elaborate a little on what you mean by "Existing Resources" and "what resource fields should be added". What does the request do exactly?
Also, do you know if this is also the case with the form builder provided by the formio.js repository?
The reason I am asking is that I have a case where I need my application to run in an isolated environment, and would therefore like it not to do any external requests.
from ngformbuilder.
When the form builder is embedded into your application (and also point to the Form.io project endpoint), it fetches the list of resources and their fields to add a new section called "Existing Resource Fields". You can see this in our commercial portal @ https://portal.form.io. This would just need to be turned off, but we do not have it as configurable. The good news is that this portion is open source, so please feel free to add that configuration for the open source implementations and we will accept it in the next builds.
from ngformbuilder.
Aha, I think I understand what you are saying now. Thank you for the explanation :)
The reason why I would like to prevent the request is that I don't actually have a Form.io project endpoint, and therefore the request is not necessary. In other words, I am only using the form builder as a local generator of form schemas.
Just as a final follow-up question on this:
As you say, the form builder can point to a Form.io project endpoint, but is there any way of specifying that no project endpoint should be used? Or is this also not configurable?
from ngformbuilder.
You can see here the options to disable this functionality: https://github.com/formio/formio.js/blob/master/src/WebformBuilder.js#L311-L313
from ngformbuilder.
Related Issues (20)
- panel component conditional advanced
- Adding new group and adding new component to it HOT 3
- Unknown component while rendering
- Can anyone reply why key is having a prefix of undefined ?
- How to add "multiple values" to a layout component ?
- ngFormBuilder support multiple locales ? HOT 1
- panel/fieldset collapsible and collapsed HOT 3
- overlay width settings don't seem to be working
- How to add components
- Support to Angular 4+
- Changing the style of a components HOT 1
- Render Json output HOT 2
- How to create custom component with draggable property inside it. HOT 1
- How to set a unique key for a custom component that doesn't change according to label? HOT 3
- How to bind the resources to the custom form Builder HOT 1
- How to turn off searching option in select component? HOT 3
- Json binding to formMapping ?
- how to give dummy values to angular formio form HOT 2
- [QUESTION] Can I add new keys to components? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngformbuilder.