Nested and conditional fields
See original GitHub issueHi, very practical package.
I have checked documentation and live examples but could not find solutions for my questions. Maybe I missed it.
1- Is it possible to have nested form fields. My intention is only for generating wrappers for some form fields in HTML. I need to have the following schema.
schema: {
fields: [{
type: "group",
label: "Group 1",
fields: [
{
type: "input",
inputType: "text",
label: "Name",
model: "name",
placeholder: "Your name",
featured: true,
required: true
},
{
type: "input",
inputType: "password",
label: "Password",
model: "password",
min: 6,
required: true,
hint: "Minimum 6 characters",
validator: VueFormGenerator.validators.string
}
]
},{
type: "group",
label: "Group 2",
fields: [
{
type: "select",
label: "skills",
model: "type",
values: ["Javascript", "VueJS", "CSS3", "HTML5"]
},{
type: "input",
inputType: "email",
label: "E-mail",
model: "email",
placeholder: "User's e-mail address"
},{
type: "checkbox",
label: "Status",
model: "status",
default: true
}
]
}]
}
2- What about conditional form fields? For example if I enable a switch, several other form fields will be visible.
Thanks in advance,
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Nested conditionals (if/else/if) | AP CSP (article) | Khan Academy
Imagine a program that reports whether a number is positive, negative, or zero. That program needs to select from 3 paths. The flowchart...
Read more >Nested Conditional Logic Limitations
Nested conditional logic will work if the conditional field does not have a default value, is not dynamically populated, and, if the field...
Read more >Conditional Fields Depending on ... - Woodpecker Help Center
Conditional fields : create seamless client experiences with Woodpecker ... Conditional Fields Depending on Other Conditional Fields (Nested Conditionals) ...
Read more >Nested IF Fields - A method to create them
Operator is the test condition and should come back as true or false. A field is "nested" when that field is used inside...
Read more >nested groups - Conditional Fields for CF7
nested groups. You can create groups inside another group. For example: ... Conditional Fields (Text). show [subcat2-2] if [select-subcat-2] equals "subcat ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
#209 published: https://github.com/icebob/vue-form-generator/releases/tag/v2.0.0-beta7
I hope in this week.