Comments (9)
Hi, I have fixed the binding issue. Now in edit mode the form element is binding.
But every time it is adding a extra Submit button.
How can I stop adding the Submit button with my form?
from ngformbuilder.
I've added a pull request to fix this issue for you. You can use the bugfix/submit-append branch or we should have this merged in shortly.
from ngformbuilder.
Hi Randallknutson,
I have downloaded this file from link https://github.com/formio/ngFormBuilder/blob/1707a42e9b427cb77c8bacfa04437f7ef4616fc2/dist/ngFormBuilder-complete.js in which you have made changes I think and have replaced my previously used formbuilder js file http://npmcdn.com/[email protected]/dist/ngFormBuilder-complete.js.
But your changed js file still adding a submit button and a new problem is showing, my form component binding is not working.
I have tested replacing the old js file and new js file but yours one is not working.
from ngformbuilder.
@KBasher - If it helps, this is the code change introduced in #171 above:
94b0c31#diff-d01c1a9377f9d59c6753be3220a04563
from ngformbuilder.
@laradevitt - my friend @KBasher and I thank you for that!
from ngformbuilder.
I have downloaded the file dist/ngFormBuilder-complete.js and added in place of http://npmcdn.com/[email protected]/dist/ngFormBuilder-complete.js. Using the new one my form binding in edit mode is not working and extra submit button is adding still.
from ngformbuilder.
Hi, I have download the js code from http://npmcdn.com/[email protected]/dist/ngFormBuilder-complete.js and made changes in three places and it work for me both form binding in edit mode and extra submit button is not adding.
original code
if (!$scope.form || !$scope.form.components || !$scope.form.components.length) { $scope.form = {components:[submitButton]}; } else { $scope.form.components.push(submitButton); }
changed code
if (!$scope.form || !$scope.form.components || !$scope.form.components.length) { $scope.form = {components:[]}; } else { //$scope.form.components.push(submitButton); }
and I comment that line
if ($scope.formio && $scope.formio.formId) { $scope.formio.loadForm().then(function(form) { $scope.form = form; $scope.form.page = 0; if ($scope.form.components.length === 0) { //$scope.form.components.push(submitButton); } }); }
from ngformbuilder.
I've added a new pull request in #173 that will give an option to not add submit buttons. Use it like this:
from ngformbuilder.
The problem is fixed. Thanks.
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
- [QUESTION] How to prevent request to form.io API (api.form.io/form)? HOT 8
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.