Giter VIP home page Giter VIP logo

Comments (8)

travist avatar travist commented on June 2, 2024

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.

vkvisli avatar vkvisli commented on June 2, 2024

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:

image

Maybe you could check if the same happens for you?

from ngformbuilder.

travist avatar travist commented on June 2, 2024

We will add this item to our planning to discuss and maybe prioritize resolution. Stay tuned.

from ngformbuilder.

travist avatar travist commented on June 2, 2024

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.

vkvisli avatar vkvisli commented on June 2, 2024

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.

travist avatar travist commented on June 2, 2024

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.

vkvisli avatar vkvisli commented on June 2, 2024

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.

randallknutson avatar randallknutson commented on June 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.