react-schema-form
react-schema-form copied to clipboard
conditionals
can i have conditional display of values? like ticking a checkbox or selecting a radio to open up an input.
Yes. I am very business these days and I will add an example for that once I have spare time. Take a look at the following example (kitchen sink) for angular-schema-form and the syntax is the same for react-schema -form.
http://schemaform.io/examples/bootstrap-example.html
I tried this out by making the following change to the Simple example on the demo page
In the form definition, replace
"email",
with:
{
"key": "email",
"condition": "model.name === 'foo'"
},
This should make the email field visible only if the name field has the value "foo", but it doesn't work. Incidentally, I also tried using modelData in the condition instead of model but that doesn't work either.
This issue now has a funding of 0.05 ETH (18.77 USD @ $375.45/ETH) attached to it.
- If you would like to work on this issue you can claim it here.
- If you've completed this issue and want to claim the bounty you can do so here
- Questions? Get help on the Gitcoin Slack
- $2250.09 more Funded OSS Work Available at: https://gitcoin.co/explorer
Hi @GUIEEN we haven't heard from you so Gitcoin Bot will return this to an active status.
@GUIEEN are you still working on this issue?
@GUIEEN are you still working on this issue?
@GUIEEN are you still working on this issue?
Seems this issue was already been resolved with the example condition, though the examples in gh-pages does not have it
The examples in gh-pages haven't updated for a while. I will try to rebuild it and republished. We have basic conditional fields but I don't know if that meets @biskit's requirement.
Hi @stevehu are you still looking for help from a Gitcoin Bounty Hunter here?
@eswr Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!
- [x] warning (3 days)
- [ ] escalation to mods (6 days)
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days
@eswr Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!
- [x] warning (3 days)
- [ ] escalation to mods (6 days)
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days
@eswr Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!
- [x] warning (3 days)
- [ ] escalation to mods (6 days)
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days
Hey @eswr are you still working on this? Will need to return it to the crowd in a day or so if we don't hear back. Thanks!
@eswr Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!
- [x] warning (3 days)
- [ ] escalation to mods (6 days)
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days
hi @ceresstation I could not even get the example to run. It is better to let someone else do it. I selected 'stop work' on gitcoin
@stevehu this one has been open for a while, would recommend clawing back the funds if you'd like.
@gtaschuk I think it is funded by you. What would be the next action? Thanks.