Hi,
what event fires if i type some text in the combo field. OnChange works only while changing the combo from the list.
Hi,
what event fires if i type some text in the combo field. OnChange works only while changing the combo from the list.
Sorry my fault - event fires but now I have a different problem.
How to change the item value in the onChange event??
Background:
There´s a combo with i.e
{type:"combo", label:" ", name:"fm_area3_starttime_cb", inputWidth:65, labelWidth:10, note:{text:"set time"}, options:[
{text:"", value:"", selected:true},
{text:"08:00", value:"08:00"},
{text:"09:00", value:"09:00"},
...
{text:"19:00", value:"19:00"}
]},
User should be able to select one - work fine, User should be also able to type one i.e. 9:43 - works also fine. In the onChange I call a function to check the input and format it i.e. 27:77 becomes “empty” 8:4 becomes 08:04 - The checkinmg and formation works but if I try to change the combo value (inside the onChange) with
myform.setItemValue(id,"08:04");
This won´t work - the field value after onChange is 8:4 and not 08:04.
How to handle???
In case of operating with the “combo” item you need to use the dhtmlxCombo api.
You can get the dhtmlxCombo object of the item using the getCombo() method:
docs.dhtmlx.com/api__dhtmlxform_getcombo.html
docs.dhtmlx.com/form__other_con … collection