How can I make a date picker field appear only when a certain tick box is selected?