Skip to content

Conditional field not removed from model #565

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

Closed
PhilBroadbent opened this issue Oct 2, 2015 · 2 comments
Closed

Conditional field not removed from model #565

PhilBroadbent opened this issue Oct 2, 2015 · 2 comments

Comments

@PhilBroadbent
Copy link

Hi, I'm having a problem with the "condition" parameter. It's not removing the value from the model. This is the case for both 'select' and 'date' types . Below example is user selects something from select dropdown, then the date field is shown/hidden - but the date value in the model doesn't disappear. (And same for another select field if this condition is applied)

Schema:

type: "object"
properties: Object
    settlementdate: Object
        condition: "model.settlementtype==='0'"
        fixtag: 64
        format: "date"
        name: "settlementdate"
        required: false
        title: "Settlement Date"
        type: "string"
        uiType: "date"
settlementtype: Object
    default: "0"
    fixtag: 63
    name: "settlementtype"
    onChange: "dropdownChanged()"
    required: true
    title: "Settlement Type*"
    type: "string"
    uiType: "select"

Part of form:

condition: "model.settlementtype==='0'"
format: "yyyymmdd"
key: "settlementdate"
maxDate: Fri Oct 02 2015 13:29:03 GMT+0100 (GMT Daylight Time)
onChange: undefined

Any advice please?

@Anthropic
Copy link
Member

@PhilBroadbent did you figure out how to deal with it? If not, can you make a gist (from the demo app)?

@Anthropic
Copy link
Member

I think this is the same as #769 which I believe is fixed in the latest alpha so given the age of this I will close it for now.

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

No branches or pull requests

3 participants