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

feat(forms): add sample 'conditional' #258

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

guillaug
Copy link
Contributor

What do you think of adding this feature : conditionally showing a field (label and value) depending on the value of a variable.

I made an example that show 2 extra fields of type 'String' and 'Int' if the age of the person is older than 18.

See 'Conditional' tab in the examples / samples

@cheleb
Copy link
Owner

cheleb commented Jan 16, 2025

Whoooooooo, lovely, will take a look tonight <3

Copy link
Owner

@cheleb cheleb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sound great, just maybe remove data when condition is not met any longer, look inline suggestion.

@guillaug
Copy link
Contributor Author

Ok I think it is ready to be merged.
Let me know.

@cheleb cheleb merged commit b1315fe into cheleb:master Jan 20, 2025
1 check passed
@cheleb
Copy link
Owner

cheleb commented Jan 20, 2025

Thanks you !

@cheleb
Copy link
Owner

cheleb commented Jan 20, 2025 via email

@cheleb
Copy link
Owner

cheleb commented Jan 20, 2025 via email

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

Successfully merging this pull request may close these issues.

2 participants