Form Builder using drag and drop UI components - reactjs

I am expecting to build a form dynamiccally by admin using drag and drop UI components like textbox, checkbox, dropdown, etc., I want to store this form so that end user can provide their input through this form against a provided form name.
I am expecting some react component to do this.

Related

Tabbed Form in Ant Design Issue

Tabbed Form doesn't seem possible in AntDesign. all field error comes when we submit form inside tab
Blockers
On Submit only current active tab form values comes
Tabs are inside the form
all field error Comes when we submit form inside tab
destroyInactiveTabPane i try this but not working
If i have to generate tabs dynamically like English, French,
Italian, i cannot initialling Form as tab loop will come
inside of component
Forced render of content in tabs, not lazy render after
clicking on tabs i try this but not working
Error Validation Trigger when i submit form of all filed with in the form
Create forms inside each tab and in your parent file which will hold the tabs data, active tab manage the state.
Create form for each tab.
Suppose i have name and member tab i will create the form with
Const nameForm = useForm()
Const memberForm =useForm()
And pass each form as props to the component.
Nameform to name component and so on.
And whenever you will try to change the tab or click submit check in function which tab is active and validate that form only.

React Bootstrap Table show and update

I am able to get a react bootstrap table to show with hard coded values, but I am trying to get it to show on a button click and display values based on a parameter. Also, on a button click can I update that same table?

How to use multiple antd modals in a single page by resusing a single component?

I have created an antd table on my page. In my table rows i have given an option to edit. The edit option is basically an icon which opens up a modal with the form in it.
When the user clicks on the submit button of modal the form submits and the field is edited.
Problem
My problem is that if i manage the state globally using redux then on clicking one edit icon all the modals open up together of all the table rows.
But i dont want that.I want to create a single component of modal and pass a form as a children prop and on submission of form my modal closes.
I used CreateRef to change the state of child component but wasnt able to achieve what i want.
I think your app dependency is like this App -> Table -> Row
<Modal> should be a separate component inside App, so only single <Modal> instance can display in the whole App

CodenameOne set indexing of fields for virtual keyboard

Using CodenameOne,
I have a Form that the user needs to fill in. All of the components, however, are actually Containers that represent custom functionality. As an example, I would have a TextField alongside a Button on a Container, and I would use that Container as a "Component". This allows me to create more advanced functionality by combining existing Components.
A good example of where this is necessary is that of a custom date entry field existing out of 3 TextFields or a combination of TextFields and ComboBoxes.
I have a "Field" that has functionality for that of a Contact Component.
This all serves as a single "Unit" in order to allow the user to choose a contact or fill in their own. Buttons open Dialog popups, etc.
My problems comes with when the user uses the Android keyboard. Should this Contact Object be the second "Field" and the user presses the 'Next' button on the Android keyboard, the App does not know what field to give focus.
Furthermore, If one of the fields are a ComboBox or a Button and the user presses next to reach that Component, the keyboard doesn't close, and instead removes the 'Next' button, replacing it with a return button or an emoticon selector.
Below is an example situation:
The user would press on the first field, the Keyboard shows up, and when the user presses next, the keyboard's Next button dissapears, as the immediate next field happens to be a Button or ComboBox.
Is there a way to change the focusing index, or omit certain fields form ever gaining focus in this way? I tried making the entire thing a Component but that doesnt allow me to combine other Components. Even if it is possible to make the parent Container a Component, how would I solve this particular issue?
The default behavior is to use the "next focus down" for this functionality so just use setNextFocusDown(nextTextField) on each one of the components. Notice that a ComboBox won't work as expected although you might want to change that to an AutoCompleteTextField which would.

How do I determine component with focus in a codenameone container?

I am building a json editor in codenameone. In my current design I need to insert or remove components that have focus when a menu command is pressed. So for instance if i have TextFields inside a Container , I need to determine which textfield has focus when I press the insert menu option so that I can insert another component there.
On the current form (you can get the current form using Display.getInstance().getCurrent()) invoke getFocused(). You can also bind a focus listener using addFocusListener on the form or on the component you want to track.
Notice that with touch device the concept of focus isn't quite the same since focus isn't marked on such devices.

Resources