I have one drop down called Override Address with two values true and false. When we select the true it override a new address otherwise not. It works fine. Now I wanted to change this Drop down to check box with the same functionality. When I change this code I am getting exception like: Override Address java.lang.IllegalArgumentException: argument type mismatch
Basically the checkbox returns the boolean value and I am having problem to convert the boolean value and setting this value as a string. Here are the codes which works with Drop down and Chekbox.