а

Bug with initial value of "Select" in Form


#1

I use “Select” control for my web form.
Options data looks like:

var FormData = [
{id: “amount”, type: “input”, label: “Amount”, value: “”, placeholder: “0”,
validation: “numeric”, labelInline: true, gravity: false, name: “amount”},
{id: “currency”, type: “select”, label: “Currency”,
labelInline: true, gravity: false, name: “currency”, value: “USD”,
options: [
{value: “EUR”, content: “EUR” },
{value: “USD”, content: “USD” },
{value: “RUB”, content: “RUB” },
{value: “GBP”, content: “GBP” },
]
},
{id: “result”, type: “input”, labelInline: true, label: “Result”, value: 0, gravity: false, name: “result”, disabled: true},
{id: “date”, type: “datepicker”, label: “Date”, labelInline: true, weekStart: “monday”, gravity: false, name: “date”, dateFormat: “%d/%m/%Y”},
{id: “description”, type: “input”, label: “Description”, value: “”, placeholder: “”, labelInline: true, gravity: false, name: “description”},
{id: “submit”, type: “button”, circle: true, full: true, value: “Submit”, name: “submit”, disabled: true},
{id: “reset_assets”, type: “button”, circle: true, full: true, value: “Clear assets list”, name: “reset_assets”},];

When page loaded it looks fine and “USD” is shown as the initial value of the select control but console test shows different value:

Form.getValue()
{amount: “”, currency: “EUR”, result: “”, date: “”, description: “”}

!?!?!?


#2

I apologize for the delay. The problem is confirmed. we’ll inform you about the progress.


#3

The issue will be fixed in the next update. Thank you for your report.