Skip to content
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

Multiple cf-labels, radio input with multiple options to choose. #401

Open
serhiibabaiev opened this issue Jun 18, 2020 · 1 comment
Open
Assignees
Labels

Comments

@serhiibabaiev
Copy link

serhiibabaiev commented Jun 18, 2020

Hi, I am using your library with React(Next.js + TypeScript).
As you showed here, but I need the same for React Component.
Here is my code
image

Here I need a few countries for example 'Ukraine, Spain, Italy'.
I tried a lot, arrays, objects, strings all of them are not working.
So how can I see here my options?
image

@jemikanegara
Copy link

@serhiibabaiev try this

{
        "tag": "fieldset",
        "cf-questions": "What is your country?",
        "children": [
          {
            "tag": "input",
            "type": "radio",
            "cf-label": "Ukraine",
           "value": "U"
          },
          {
            "tag": "input",
            "type": "radio",
            "cf-label": "Spain",
            "value": "SP"
          },
          {
            "tag": "input",
            "type": "radio",
            "cf-label": "Italy",
            "value": "IT"
          }
        ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants