I'm probably overlooking something, but it beats the ... out of me why this piece of code is not working, or more specific not working under all circumstances.
THis is the code:
if(ce_type == 'exam')
{
elements.ce_timeout.visible = true;
elements.time_out_lbl.visible = true;
}
else
{
ce_timeout = null
elements.ce_timeout.visible = false;
elements.time_out_lbl.visible = false;
}
ce_type is a dataprovider & an element (combobox)
attached to the combo (on datachange) it does exactly what I want. However I want the element ce_timeout & his label also disappeared when an existing record is edited. So I attach the same code to the on show method of the same form & then I get the error
'ce_type is not defined'.
I fail to see why at the showstage the dataprovider is not there ?
Anyone
TIA