About form submit


#1

I wrote the code as below.

const form = new dhx.Form(“form”, {
css: “dhx_widget–bordered”,
padding: 40,
width: 600,
rows: [
{
name: “userId”,
id:“userId”,
type: “input”,
label: “ID”,
labelPosition: “top”,
labelWidth: 140,
required: true,
// value:"${userId}"
},
{
name: “userPwd”,
id:“userPwd”,
type: “input”,
inputType:“password”,
label: “Password”,
required: true,
labelPosition: “top”,
placeholder:"********",
labelWidth: 140,
},
{
name: “userNm”,
id:“userNm”,
type: “input”,
label: “Name”,
labelPosition: “top”,
labelWidth: 140,
required: true
},
{
name: “userEmail”,
id:“userEmail”,
type: “input”,
label: “EMAIL”,
labelPosition: “top”,
labelWidth: 140,
required: true
},
{
name: “userPhone”,
id:“userPhone”,
type: “input”,
label: “Phone”,
labelPosition: “top”,
labelWidth: 140,
required: true
},
{
name: “birth”,
id:“birth”,
type: “datepicker”,
label: “Birth”,
dateFormat:"%Y-%m-%d",
labelPosition: “top”,
labelWidth: 140,
},
{
name: “gender”,
id:“gender”,
type: “radioGroup”,
label: “Gender”,
labelWidth: 140,
labelPosition: “top”
options: {
rows: [
{
type: “radioButton”,
text: “Man”,
value: “Man”,
},
{
type: “radioButton”,
text: “Woman”,
value: “Woman”
},
]
},
},
{
type: “spacer”,
},
{
align: “end”,
cols: [
{
name: “button”,
type: “button”,
submit: true,
text: “Confirm”,
size: “medium”,
view: “flat”,
color: “primary”,
url: “/admin/user.sws?mode=addTransaction”,
}
]
}
]

});

Clicking the button does not exceed the parameter value.
Is there anything I’m missing?


#2

Could you please, clarify your issue, as the parameter is successfully included in the send request for me locally.
You can test it locally:
https://snippet.dhtmlx.com/l1fnwhr2