Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

Conditions not working #4

Closed
brunofjesus opened this issue Sep 26, 2019 · 5 comments
Closed

Conditions not working #4

brunofjesus opened this issue Sep 26, 2019 · 5 comments
Labels
bug Something isn't working

Comments

@brunofjesus
Copy link

When using the same form that I use for the angular-formio the conditions don't work.

Example form:

{
    "components": [
        {
            "label": "Show text field",
            "optionsLabelPosition": "right",
            "inline": false,
            "values": [
                {
                    "label": "Yes",
                    "value": "yes",
                    "shortcut": ""
                },
                {
                    "label": "No",
                    "value": "no",
                    "shortcut": ""
                }
            ],
            "key": "showBelowConditional",
            "type": "radio",
            "input": true
        },
        {
            "label": "Conditional",
            "inputFormat": "plain",
            "key": "textField",
            "conditional": {
                "show": "true",
                "when": "showBelowConditional",
                "eq": "yes"
            },
            "type": "textfield",
            "input": true
        },
        {
            "type": "button",
            "label": "Submit",
            "key": "submit",
            "disableOnInvalid": true,
            "input": true
        }
    ]
}
@brunofjesus brunofjesus added the bug Something isn't working label Sep 26, 2019
@travist
Copy link
Member

travist commented Oct 24, 2019

Fixed in v1.1.0

@travist travist closed this as completed Oct 24, 2019
@LaksmiEzhil
Copy link

@travist, still i am getting this issue. In normal form.io the conditional is working good. If i use material form.io it's not working.

@jeriah-formio
Copy link

@LaksmiEzhil
Thank you for the report. We've added this issue to our backlog and will review during our planning meeting next week. If you need this item expedited, please feel free to contact support@form.io for pricing.

@LaksmiEzhil
Copy link

@jhen1422 , thanks for your consideration. I got a new issue. When i tried to build my app i am getting a warning message.
WARNING in ./node_modules/angular-material-formio/node_modules/formiojs/utils/utils.js
Module not found: Error: Can't resolve 'vm' in 'C:\dev\sevahealthWeb\node_modules\angular-material-formio\node_modules\formiojs\utils'

form.io not loading in server also.can you please help me.

@travist
Copy link
Member

travist commented Dec 19, 2019

@LaksmiEzhil you already submitted an issue with that Warning (which is something new and does not belong in this thread). That is plenty enough for us to see it...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants