Skip to content

Docs: Dependent validation (required/optional) of field based on other field #12

@pgangwani

Description

@pgangwani

Is your feature request related to a problem? Please describe.
I am finding some what difficult to clearly use updateField for the form-atom where we need to omit a field which is not showing in render. this is due to other field selected, which makes this field not to be sent.

Describe the solution you'd like
I would like to get updateField example for below usecases:

  1. Updating validation function whether it is required or not
  2. In case hiding the field based on some other field, optional to be added and field should be cleared.

Describe alternatives you've considered
I am using derived atom based on multiple atom to recreate form atom but based on selection I cannot call derived atom.

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions