react-schema-form icon indicating copy to clipboard operation
react-schema-form copied to clipboard

conditionals

Open biskit opened this issue 8 years ago • 18 comments

can i have conditional display of values? like ticking a checkbox or selecting a radio to open up an input.

biskit avatar Apr 05 '17 21:04 biskit

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

stevehu avatar Apr 06 '17 00:04 stevehu

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.

donalmurtagh avatar Jan 18 '18 18:01 donalmurtagh

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

gitcoinbot avatar Mar 30 '18 20:03 gitcoinbot

Hi @GUIEEN we haven't heard from you so Gitcoin Bot will return this to an active status.

vs77bb avatar Apr 07 '18 23:04 vs77bb

@GUIEEN are you still working on this issue?

gitcoinbot avatar Apr 19 '18 16:04 gitcoinbot

@GUIEEN are you still working on this issue?

gitcoinbot avatar Apr 22 '18 16:04 gitcoinbot

@GUIEEN are you still working on this issue?

gitcoinbot avatar Apr 25 '18 16:04 gitcoinbot

Seems this issue was already been resolved with the example condition, though the examples in gh-pages does not have it

rrandom avatar May 02 '18 14:05 rrandom

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.

stevehu avatar May 02 '18 20:05 stevehu

Hi @stevehu are you still looking for help from a Gitcoin Bounty Hunter here?

vs77bb avatar May 08 '18 04:05 vs77bb

@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

gitcoinbot avatar Jun 24 '18 16:06 gitcoinbot

@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

gitcoinbot avatar Jun 27 '18 16:06 gitcoinbot

@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

gitcoinbot avatar Jun 30 '18 16:06 gitcoinbot

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!

spm32 avatar Jul 02 '18 00:07 spm32

@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

gitcoinbot avatar Jul 03 '18 16:07 gitcoinbot

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

eswr avatar Jul 03 '18 19:07 eswr

@stevehu this one has been open for a while, would recommend clawing back the funds if you'd like.

gitcoinbot avatar Aug 10 '18 21:08 gitcoinbot

@gtaschuk I think it is funded by you. What would be the next action? Thanks.

stevehu avatar Aug 11 '18 01:08 stevehu