rjsf-team / react-jsonschema-form

A React component for building Web forms from JSON Schema.
https://rjsf-team.github.io/react-jsonschema-form/
Apache License 2.0
14.1k stars 2.18k forks source link

The If else conditions doesnot work #3268

Closed PoojaRayC closed 2 weeks ago

PoojaRayC commented 1 year ago

Prerequisites

What theme are you using?

core

Version

5.x

Current Behavior

I am not able add multiple field in if else conditions

Expected Behavior

ok if else conditions the ui field should show up

Steps To Reproduce

I was running the playground code in my system , if i add field it doesn’t work

Environment

- OS: MacIos
- Node: v14.20.0
- npm:6.14.17

Anything else?

N/A

heath-freenome commented 1 year ago

@PoojaRayC Can you please provide a reproducible test case using codesandbox.io or jsfiddle? Otherwise we'll just have to close this issue as cannot reproduce

PoojaRayC commented 1 year ago

Hi ,

Please find the code sandbox

https://codesandbox.io/s/autumn-tdd-yv2ubi?file=/src/App.js:1270-1288

Regards, Pooja

On Thu, Dec 8, 2022 at 9:58 AM Heath C @.***> wrote:

@PoojaRayC https://github.com/PoojaRayC Can you please provide a reproducible test case using codesandbox.io or jsfiddle? Otherwise we'll just have to close this issue as cannot reproduce

— Reply to this email directly, view it on GitHub https://github.com/rjsf-team/react-jsonschema-form/issues/3268#issuecomment-1343091991, or unsubscribe https://github.com/notifications/unsubscribe-auth/APN64YLTLX6JXEXZ73Z6Y23WMIOSVANCNFSM6AAAAAASRTRO64 . You are receiving this because you were mentioned.Message ID: @.***>

heath-freenome commented 1 year ago

@PoojaRayC Your code sandbox is using an ancient and unsupported version of the library from before it migrated to the @rjsf package... Can you try using the 5.0.0-beta.13?

PoojaRayC commented 1 year ago

Hi ,

Can you please send the sandbox link where it can work?

Pooja On Mon, Dec 12, 2022 at 9:40 AM Heath C @.***> wrote:

@PoojaRayC https://github.com/PoojaRayC Your code sandbox is using an ancient and unsupported version of the library from before it migrated to the @rjsf https://github.com/rjsf package... Can you try using the 5.0.0-beta.13?

— Reply to this email directly, view it on GitHub https://github.com/rjsf-team/react-jsonschema-form/issues/3268#issuecomment-1346939945, or unsubscribe https://github.com/notifications/unsubscribe-auth/APN64YP4NECVIS3TLA7MG6DWM5PR5ANCNFSM6AAAAAASRTRO64 . You are receiving this because you were mentioned.Message ID: @.***>

heath-freenome commented 1 year ago

I just double checked your sandbox and I don't see any actual RJSF code. You should be able to just import the following into codesandbox and then provide your schema, uiSchema and render a Form:

@rjsf/utils 5.6.2 (or newer)
@rjsf/validator-ajv8 5.6.2  (or newer)
@rjsf/core 5.6.2 (or newer)
stale[bot] commented 1 month ago

This issue has been automatically marked as possibly close because it has not had recent activity. It will be closed if no further activity occurs. Please leave a comment if this is still an issue for you. Thank you.

stale[bot] commented 2 weeks ago

This issue was closed because of lack of recent activity. Reopen if you still need assistance.