Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Default values not populating on showIf fields #12

Open
Kelley12 opened this issue Sep 13, 2019 · 0 comments
Open

Default values not populating on showIf fields #12

Kelley12 opened this issue Sep 13, 2019 · 0 comments

Comments

@Kelley12
Copy link

For example, the fields Port, and Baud Rate are not populated when type = Serial in the following example.

{
    type: "Select", model: "type", label: "Communication", options: [
        { label: "TCP", value: "TCP" },
        { label: "Serial", value: "Serial" },
    ]
},
{ type: "QuickForm", model: "link", showIf: { field: "type", is: "TCP" }, fields: [
    { type: "Input", inputType: "text", model: "host", default: "192.168.50.4", label: "IP Address" },
    { type: "Input", inputType: "number", model: "port", default: "9000", label: "Port Number" }
]},
{ type: "QuickForm", model: "link", showIf: { field: "type", is: "Serial" }, fields: [
    { type: "Input", inputType: "string", default: "/dev/ttyUSB0", model: "devPort", label: "Port" },
    { type: "Input", inputType: "number", default: 115200, model: "baudRate", label: "Baud Rate" }
]}
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant