Giter VIP home page Giter VIP logo

Comments (4)

sergeythrees avatar sergeythrees commented on July 29, 2024

Hi, @ababeel-ceo
https://formengine.io/documentation/nested-components#templates
Is this what you're looking for?

from formengine.

ababeel-ceo avatar ababeel-ceo commented on July 29, 2024

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.

sergeythrees avatar sergeythrees commented on July 29, 2024

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.

ababeel-ceo avatar ababeel-ceo commented on July 29, 2024

@sergeythrees

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)

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.