-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Multi column controls #379
Comments
Currently not possible with formBuilder but considering this is an almost daily request I'm sure it will be added at some point. The hold-up is that it requires major restructuring of the data and therefore the plugin. |
|
So this is or is not going to be a feature? You used a double negative and that makes it ambiguous. |
@cccuscott wow I must have been super tired, what I wrote makes no sense. To clarify- it would be a great feature for someone to add true drag and drop columns to formBuilder. @Jojoshua added some support for rendered forms. To use see: https://github.com/kevinchappell/formBuilder/blob/master/docs/formBuilder/demos/bootstrap-grid.md |
Thanks for the speedy response thanks. |
fb-demo.movHey Guys _ I have done a multi column implementation of the form builder v3.7.3. Have a look at the above video to see how it works. I'm more than happy to share the code if anyone wants it. Cheers |
@oneplugin that's pretty cool, I would like to see the implementation |
It’s not complete and may take two more days to nail it. But most of the basic stuff is done and now I have to save the structure and was thinking about adding a new field called rows in the JSON which will include a set of rows which apparently holds all the fields in that row. I can share it as it is if you want or do you want to wait until this is fully done? Heads up - this may not be the perfect implementation of multi column as I did this in a day and a half. So bear with me if there are any issues.. |
@oneplugin keep working at it. I kind of figured you were using building of the previous bootstrap work and automating the row and row-groups creation. |
@Jojoshua actually I’m not. I’m not using sortable at all but I added extra divs inside the stage which are all droppable instances and that made the whole thing a lot simpler. It was only a matter of manipulating the dom on drop events |
@oneplugin I’m interested in your code for multi column support. How’s it coming? |
@Jojoshua @billystalnaker You can download the source archive from the link below I have added two new options
Todo -
If there are any issues, please feel free to let me know and I will be more than happy to fix them |
Forgot to mention that Form Rendering is not done as I'm using a custom renderer. But it's easy to do. You just need to checkout the loadFields function and it's self explanatory |
If you are getting an error that draggable or droppable is not defined, then that's because jquery-ui doesn't play nicely with webpack. Do the following Add "jquery-ui-bundle": ">=1.12.1" to package.json and add
to form-builder.js |
@ oneplugin Wow, I really appreciate this! I'm probably going to sound like a total newb, but I've been using the plain pre-compiled minimized version from Form Builder's website and I'm not familiar with js package managers. Any chance you could send a min version of this for me 🙏? If not, I'll need to put my dabbling boots on and get my js package manager skills up to speed. |
Make sure you include bootstrap.min.css for the modal dialog to work. If you run into any issues, do let me know. Thanks! |
@oneplugin Appreciate that!! I plugged that file in and it doesn't seem to be letting me drag and drop any fields in. Also getting these weird ajax requests to http://localhost:8082/sockjs-node/info?t=1636914634612 Thanks in advance! |
Are you seeing any errors in the console? Those ajax requests are for
enabling chrome debugging. You can ignore them
…On Mon, 15 Nov 2021 at 12:01 AM, billystalnaker ***@***.***> wrote:
@oneplugin <https://github.com/oneplugin> Appreciate that!! I plugged
that file in and it doesn't seem to be letting me drag and drop any fields
in. Also getting these weird ajax requests to
http://localhost:8082/sockjs-node/info?t=1636914634612
Thanks in advance!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#379 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AV7ZQQGOHLMTP5HWRBLZ2RDUL757BANCNFSM4DCMSXQA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
None outside of that |
Yeah there aren’t any errors. I think it’s probably because of you not
including the updated CSS. To confirm, are you atleast able to drag the
controls from the controls area? I understand that you can’t drop them and
that’s because the CSS isn’t there. If you confirm this, I will send you
the CSS tomorrow
On Mon, 15 Nov 2021 at 12:42 AM, billystalnaker ***@***.***>
wrote:
… Are you seeing any errors in the console? Those ajax requests are for
enabling chrome debugging. You can ignore them
… <#m_-1184957748143888486_>
On Mon, 15 Nov 2021 at 12:01 AM, billystalnaker *@*.***> wrote: @oneplugin
<https://github.com/oneplugin> https://github.com/oneplugin Appreciate
that!! I plugged that file in and it doesn't seem to be letting me drag and
drop any fields in. Also getting these weird ajax requests to
http://localhost:8082/sockjs-node/info?t=1636914634612 Thanks in advance!
— You are receiving this because you were mentioned. Reply to this email
directly, view it on GitHub <#379 (comment)
<#379 (comment)>>,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AV7ZQQGOHLMTP5HWRBLZ2RDUL757BANCNFSM4DCMSXQA
. Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub
.
[image: Capture]
<https://user-images.githubusercontent.com/4194488/141695030-5e217ace-1847-42f0-a8b0-f6b03240db64.PNG>
None outside of that
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#379 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AV7ZQQH4L3Q7NXRFDPZF2VDUMACYTANCNFSM4DCMSXQA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
@billystalnaker To make things easier for you, I have created a jsFiddle |
Ahh @oneplugin I have found the issue. In your jsFiddle if you remove all of the existing fields and then try to add a new field there is no group to add the field to, and so it doesn't let you add the field anywhere. Which is exactly what I'm experiencing. |
@oneplugin after realizing that I just needed some fields to make this work, I saved and tried to re-render and now I'm getting this "replace" error in the bowels of the javascript. Any advice here? |
@oneplugin any chance I could get you to wrap up that min.js file in something that doesn't have to go through that whole "eval" process you have going on? It's erroring out for me. |
@ billystalnaker could you tell me what you are trying to achieve and I
will make necessary changes and will update the fiddle for you. I’m not
planning to rewrite the form renderer engine as I will be using a custom
one.
I will fix the issue that pops up when there are no controls initially.
Also appreciate you letting me know how I can reproduce the ‘replace’ issue
you have uploaded
…On Tue, 23 Nov 2021 at 9:20 AM, ***@***.***> wrote:
@oneplugin <https://github.com/oneplugin> any chance I could get you to
wrap up that min.js file in something that doesn't have to go through that
whole "eval" process you have going on? It's erroring out for me.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#379 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AV7ZQQDMVJDVFBSMRKA5UD3UNMFR7ANCNFSM4DCMSXQA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
@oneplugin I appreciate the work you've done so far on this, and honestly, I just want to use what you've already completed. I am planning on using a custom renderer as well, and so I'm not as concerned there either. Just want a min.js file I can use that will load in correctly without random pings to "localhost" and other console errors. |
@ billystalnaker That’s fair enough. I guess the webpack settings were
using the development mode while exporting. I will check that and will
update the fiddle. In the meanwhile I suggest you use the source code I
sent you earlier and get yourself familiar with webpack and stuff as that
will help you further develop on your own.
…On Thu, 25 Nov 2021 at 9:35 AM, billystalnaker ***@***.***> wrote:
@oneplugin <https://github.com/oneplugin> I appreciate the work you've
done so far on this, and honestly, I just want to use what you've already
completed. I am planning on using a custom renderer as well, and so I'm not
as concerned there either. Just want a min.js file I can use that will load
in correctly without random pings to "localhost" and other console errors.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#379 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AV7ZQQCBYFQZKTVHDHTLRF3UNWYYLANCNFSM4DCMSXQA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
@oneplugin Thank you for your improvment, can you send me formrender.min.js here?? |
@MBagherii - checkout this thread
#1237#
…On Wed, 22 Dec 2021 at 3:39 PM, MBagherii ***@***.***> wrote:
@oneplugin <https://github.com/oneplugin> Thank you for your improvment,
can you send me formrender.min.js here??
—
Reply to this email directly, view it on GitHub
<#379 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AV7ZQQFBUAJIISLPCTNT2F3USGPVHANCNFSM4DCMSXQA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@oneplugin Thanks a lot for your help |
Uncaught TypeError: jquery__WEBPACK_IMPORTED_MODULE_1__(...).formBuilder is not a function |
how to enable multiple columns? |
Is there a convenient way to design a form that would display entered data in a multi-column control, either an HTML table or a multi-column listbox? If not, perhaps something could be added to this library to better facilitate this type of component on a user defined form.
The text was updated successfully, but these errors were encountered: