Comments (4)
Hi, @ababeel-ceo
https://formengine.io/documentation/nested-components#templates
Is this what you're looking for?
from formengine.
Thanks @sergeythrees
But I tried this
{
"version": "1",
"form": {
"key": "Screen",
"type": "Screen",
"props": {},
"children": [
{
"key": "RsMessage 1",
"type": "RsMessage",
"props": {},
"children": [
{
"key": "RsInput 1",
"type": "RsInput",
"props": {},
"slot": "header"
},
{
"key": "RsRadioGroup 1",
"type": "RsRadioGroup",
"props": {}
}
]
}
]
},
"localization": {},
"languages": [
{
"code": "en",
"dialect": "US",
"name": "English",
"description": "American English",
"bidi": "ltr"
}
],
"defaultLanguage": "en-US"
}
Output is :
{
"RsInput 1": "xyz",
"RsRadioGroup 1": "b"
}
but need the output as this structure:
{
RsMessage:{
"RsInput 1": "xyz",
"RsRadioGroup 1": "b"
}
}
If the nested template is the only way then . how can i implement this in my local
from formengine.
Hi, @ababeel-ceo
In the near future, we will release a component to group data into a separate object, as you have shown. Please tell us in more detail why you need it, what benefits it will bring, so that we understand how best to implement it.
from formengine.
I'm try to build a complex form which has (1-1) and (1-many) group
eg: A book has a single author and it has multiple chapter (Just for example)
book:{
bookName : "xyz",
price : "123",
...
author : {
authorName : "abc",
...
}
chapters : [
{
name : "chapter-1"
},
{
name : "chapter-2"
}
]
}
So when get the data from user i can able bring the 1 nested object and nested array of object
from formengine.
Related Issues (20)
- Customize builder UI HOT 2
- Issue Report: Updating Component Keys in Formengine React Library HOT 1
- Formbuilder clashes in i18n library/ dropdowns seem to render elsewhere HOT 5
- Forms Tab is Not available? HOT 1
- Setting "valued" to an object type in a custom component HOT 5
- Crash when RsContainer doesn't exist "props" in the objet HOT 2
- form builder localization HOT 8
- onFormDataChange looping if there is setState inside HOT 5
- cannot add code actions from setting section HOT 14
- general loadCallback function on loadData options HOT 5
- imported lib not loaded HOT 2
- Getting error with Monaco editor in Electron application HOT 7
- No option to duplicate rows above HOT 1
- CSS not loading in FormViewer HOT 3
- Data Payload not structured HOT 3
- Update breaks build when using rollup HOT 3
- Recursive calculation causing input problems HOT 2
- Possible to write the value to other form control by action? HOT 1
- Error: Download JSON #2
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 formengine.