code to add checkbox to form advanced field