The values in my symptom_code are binded on the values in resolution_method field in detail_in.htmpl. For that, whenever resolution method changes, symptom code change accordingly. Now I want whenver a user select <empty> for resolution method (which inserts a null value in database), value in my symptom code also show an empty field that inserts a null value in the database. For that I am using the following code:
document.main_form.elements["SET.symptom_code"].options = new Option("<empty>", null);
But when I run this case, value 0 is updating for symptom_code in call_req table. Which is showing a ? when that updated incident is opened for editing.
Kindly provide the syntax that will insert a null value for symptom_code dropdown.
Thanks & Regards
Balram Singh Deswal
could you provide full code of your dropdown?
I have got the solution by hit and trail. To store NULL value, the code to be used should be:
document.main_form.elements["SET.symptom_code"].options = new Option("<empty>", "");
I think you should use:
Thanks for sharing this Gutis.