We have inserted a time field. It gives us a picker and we have selected HH.mm format.
Now if the user enters a value directly then we have a need for intercepting the value prior to "onItemChanged" is called (or has finished, if this is where we can get the value).
If user enters "8" then the field is blanked! We would like to change the value to "8.00" to allow the user to enter values quickly. If they enter in "correct" format "8:00" then it is also blanked...
We have tried to stop in the debugger in "onItemBlur" and "onItemChange" events and looked at all of the properties.... - but we have not been able to find the value entered in here.
How can we get the value to allow (or "help") the user to enter correct values?
Hi John,
I agree that this behavior is not ideal. I will file it as a defect. I believe that if I enter "8" then the time should be set to 8am and if I set it to "13" then it will be set to 1pm. The time field does not have the onLiveItemChange event (like the Single/Multi Line field), which is what you would need to intercept each entered character.
Agree - I did look for the onLiveItemChange event :)
... but please note that it actually also empties the field if I just type "8" instead of it showing just "8"...
Yes I can see that. The reason for that is that the control has not recognized a selection. When you enter "8" it reduces the options to 8am and 8pm, but the control expects the user to click one. The only way that a value is saved is if you enter "8:00 am" of "8:00am". My goal with the defect is to see about changing the behavior so that an entry like "8" is evaluated and saved as 8am.