AnsweredAssumed Answered

How to insert null value in a dropdown?

Question asked by Balram.Deswal on May 14, 2015
Latest reply on Jul 20, 2015 by William Teixeira

Hi Team,

 

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[0] = 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

Outcomes