Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

Render form from nested yaml #30

Open
ctippur opened this issue Dec 9, 2023 · 1 comment
Open

Render form from nested yaml #30

ctippur opened this issue Dec 9, 2023 · 1 comment

Comments

@ctippur
Copy link

ctippur commented Dec 9, 2023

If I have a nested yaml where the

‘’’

./forms/form1.yml

name: 'login-form'
title: 'Login form'

fields:

  • name: 'email'
    type: 'email'
    label: 'Email address'
    placeholder: 'Enter your email address here'
    tooltip: 'Type your email address in this field'

— name: 'password'
type: 'password'
label: 'Password'
placeholder: 'Enter your password here'
tooltip: 'Type your password in this field'

  • name: 'chckbx'
    type: 'checkbox'
    label: 'A random checkbox'
    tooltip: 'Toggle on or off the button by clicking on it'

submitText: 'Login'

‘’’, where for example, password is prompted only if login is provided. I have a requirement to render form where the yaml file is nested up to 3 levels.
Thanks,
S

@ctippur
Copy link
Author

ctippur commented Dec 9, 2023

Apologies as it is not formatted correctly. I will fix it shortly.

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

No branches or pull requests

1 participant