I have a select list in my form and I need to pass the actual value (1) not (one) just as in an html form:
<option value=”1”>one</value>.
It seems like it only passes the displayed value (one). How can I accomplish this?
I also noted that without the editorType: "comboBox" in the select field it does not pass any value at all.
See code below:
<script>
isc.DynamicForm.create({
method: "get",
action: "index.cfm",
ID: "exampleForm",
width: 250,
position: "relative",
fields: [
{name: "Site",
title: "Site",
editorType: "comboBox",
type: "select",
required: false,
valueMap: {
"1":"one",
"2":"two"
}
},
{name: "submit",
required: true,
title: "Search",
type: "submit"
}
]
});
</script>
<option value=”1”>one</value>.
It seems like it only passes the displayed value (one). How can I accomplish this?
I also noted that without the editorType: "comboBox" in the select field it does not pass any value at all.
See code below:
<script>
isc.DynamicForm.create({
method: "get",
action: "index.cfm",
ID: "exampleForm",
width: 250,
position: "relative",
fields: [
{name: "Site",
title: "Site",
editorType: "comboBox",
type: "select",
required: false,
valueMap: {
"1":"one",
"2":"two"
}
},
{name: "submit",
required: true,
title: "Search",
type: "submit"
}
]
});
</script>
Comment